-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SimpleHTTPRequestHandler should support browser cache #73840
Comments
SimpleHTTPServer send a Last-Modified response header, but doesn't take into account the If-Modified-Since header if it was sent by the user agent. If a url matches a file and this file was not modified after the value of the If-Modified-Since header, the server should return HTTP status 304 (Not Modified). |
Thank you for your contribution Pierre. |
Thanks for telling me. I must have run the test hundreds of times now, on a Just for my information, why do you add temp.flush() in the "with" block ? 2017-07-28 18:19 GMT+02:00 STINNER Victor <report@bugs.python.org>:
|
Thank you Victor! I suppose temp.flush() is a remnant of other (unsuccessful) attempt to fix a race condition. |
I suppose temp.flush() is a remnant of other (unsuccessful) attempt to fix I didn't try only with .flush(). I prefer to explicitly .flush(), just in |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: