Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect cache behavior in AssetServlet (#3736)
###### Problem: AssetServlet is returning 304 when the `If-None-Match` header matches *OR* `If-Modified-Since` header is later or equal to the asset modified time. This is incorrect according to [MDN's documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since) ###### Solution: Based on the documentation if the request contains the `If-None-Match` header then they are compared instead of checking `If-Modified-Since`. Fixes #3724
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 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