-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-29654 : Support If-Modified-Since HTTP header (browser cache) #298
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
20cc898
Support If-Modified-Since HTTP headers, return 304 response if file w…
f1d8a48
Fix bug in datetime comparisons. Ignore If-Modified-Since if If-None-…
c4403ec
Update Misc/NEWS and What's New
3225080
Fix typo
415e4af
Use parsedate_to_datetime to extract datetime from If-Modified-Since,…
8595735
Change computing of dates used to test browser cache
2be2f8c
Remove microseconds from time of last modification with .replace(micr…
c3337f4
Put os.fstat() call inside the try block ; handle obsolete HTTP date …
143e1e9
Restore alphabetical order in section Improved Modules
42edfe3
Store last modification date in setUp ; split browser cache tests in …
1e68be9
Specify the exceptions to catch in parsedate_to_datetime
PierreQuentel fc20596
Use except/else for parsedate_to_datetime exception handling
PierreQuentel 9436e45
Restore blank line
708ff03
Put imports in alphabetical order. Change version to 0.7.
6a58894
Presentation changes.
db46671
Change order of imports.
41f74ef
Update Misc/NEWS (conflict)
204c503
Merge branch 'master' into master
PierreQuentel e2fee49
Merge branch 'master' into master
PierreQuentel 6dadf6e
Restore version number 0.6
c389bf6
Replace "datetime" by "time"
3cc4f6d
Merge branch 'master' of https://github.com/PierreQuentel/cpython
294e164
Proposal for an update of the http.server module documentation
6c5ba39
Merge branch 'master' into master
PierreQuentel 1e0f3e3
Merge branch 'master' into master
PierreQuentel 2503add
Merge branch 'master' into master
serhiy-storchaka 36a8e2a
Merge branch 'master' into master
PierreQuentel c8b108f
Add a "Changed in version 3.7" comment
bd91346
Merge branch 'master' of https://github.com/PierreQuentel/cpython
d3238d2
Merge branch 'master' into master
PierreQuentel 16f9e11
Remove trailing whitespaces
c669909
Merge branch 'master' of https://github.com/PierreQuentel/cpython
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to split this test on few tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in commit 42edfe3.
The datetime of last modification is stored in method setUp and used in the browser cache tests. I also added a test for the Last-Modified header.