#14812 closed (fixed)
Wrong processing of If-Modified-Since header
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Contrib apps | Version: | dev |
| Severity: | Keywords: | static files, If-Modified-Since | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | yes | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I have faced with this issue when Opera 10.63 sent requests like that:
'HTTP_IF_MODIFIED_SINCE': ': 1291108438, Wed, 20 Oct 2010 14:05:00 GMT', 'HTTP_USER_AGENT': 'Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.6.30 Version/10.63'
It seems that IF_MODIFIED_SINCE header is invalid. I don't exactly why... But in RFC2616(HTTP/1.1) we can see a case: "...if the passed If-Modified-Since date is invalid, the response is exactly the same as for a normal GET". So I think, it would be better if django.contrib.staticfiles will handle this case with simple check. I've attached patch.
Attachments (1)
Change History (7)
by , 15 years ago
| Attachment: | rev14693_staticfiles.diff added |
|---|
comment:1 by , 15 years ago
| Has patch: | set |
|---|
comment:2 by , 15 years ago
| Description: | modified (diff) |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:3 by , 15 years ago
| Needs tests: | set |
|---|---|
| Version: | 1.2 → SVN |
comment:4 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:5 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
See also #14747.