#36397: Server ignores 'Last-Modified' date (Debian#926074)
-----------------------+-----------------------------------------
     Reporter:  buhtz  |                     Type:  Uncategorized
       Status:  new    |                Component:  Uncategorized
      Version:         |                 Severity:  Normal
     Keywords:         |             Triage Stage:  Unreviewed
    Has patch:  0      |      Needs documentation:  0
  Needs tests:  0      |  Patch needs improvement:  0
Easy pickings:  0      |                    UI/UX:  0
-----------------------+-----------------------------------------
 Hello,
 First please take my apologize for writing such a broad ticket. But
 others, with more intel, I asked, didn't.

 This is related to a (6 year old) Debian bug ticket:
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926074
 In short: The modified date is ignored by the server.

 The Debian folks telling me that Django is somehow involved and there
 should go a bug ticket and fix.
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926074#10

 I can not tell because I lack of deeper understanding of the underlying
 technology.

 I do have minimal working example demonstrating the problem with the
 Debian server.

 >>> url = 'https://tracker.debian.org/pkg/feedparser/rss'
 >>> import feedparser as fp
 >>> a = fp.parse(url)
 >>> import json
 >>> print(json.dumps(a.headers, indent=4))
 {
     "X-Clacks-Overhead": "GNU Terry Pratchett",
     "X-Xss-Protection": "1",
     "Transfer-Encoding": "chunked",
     "Last-Modified": "Sat, 30 Mar 2019 13:06:51 GMT",
     "Public-Key-Pins": "pin-
 sha256=\"M9Wyk2x6hLne/VkyJWFx33+LB8s+kAaMbO49fnm5fEY=\"; pin-
 sha256=\"ZsBWn0bekrum/1CJtBlg5yZ2eqRywN6YwGeBS31nH+s=\"; max-age=5184000",
     "Strict-Transport-Security": "max-age=15552000",
     "Content-Type": "application/rss+xml; charset=utf-8",
     "X-Content-Type-Options": "nosniff",
     "Connection": "close",
     "Referrer-Policy": "same-origin",
     "Content-Encoding": "gzip",
     "X-Frame-Options": "sameorigin",
     "Server": "Apache",
     "Vary": "Cookie,Accept-Encoding",
     "Date": "Sun, 31 Mar 2019 11:11:03 GMT"
 }
 >>> a.modified
 'Sat, 30 Mar 2019 13:06:51 GMT'
 >>> b = fp.parse(url, modified=a.modified)
 >>> len(a.entries)
 30
 >>> len(b.entries)
 30

 I would expect "b.entries" should be (near) 0.

 I also can not tell wich version of Django is used by Debian.

 Maybe you can give some comments in the Debian ticket?

 Regards,
 Christian
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36397>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070196d3b7b0a5-e1be65d7-b72e-46bb-9bfc-4cd9a812b0d6-000000%40eu-central-1.amazonses.com.

Reply via email to