Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IMPORTANT cache invalidation change, fix 307 keep method, add 308 red…
…irect - invalidate cache after request per RFC2616 Section 13.10 before: `method not in ["GET", "HEAD"]` now: `method in h.invalidate_methods`, default: DELETE,POST,PUT - 308 may be cached not by default as per RFC7538, but only with relevant headers - Http new attributes: safe_methods, invalidate_methods are public API, type is anything with `contains` operator, tuple is recommended. Defaults are in upper case module level constants. As of 2019-12-19, SAFE_METHODS only include GET,HEAD to minimise problems from changing much behavior at once. Please, expect default SAFE_METHODS to become GET,HEAD,OPTIONS,TRACE as per RFC7231. #151
- Loading branch information
Showing
4 changed files
with
110 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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 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 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 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