-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate minimal headers on 304 Not Modified
Favour 'ETag' over 'Last-Modified' when they are both enabled. It's redundant to produce both, especially since 'ETag' is a much stronger validator. Avoid producing 'ETag', 'Last-Modified' or 'Cache-Control' or any content-related headers when raising a '304 Not Modified' in static resources. Set the encoding to 'Soup.Encoding.NONE' to produce response headers consistent with no content.
- Loading branch information
Showing
2 changed files
with
19 additions
and
21 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