-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
fix: prevent caching error pages #17100
fix: prevent caching error pages #17100
Conversation
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.
LGTM
d96cd16
to
87b9a2c
Compare
/testenv up |
@etr2460 Container image not yet published for this PR. Please try again when build is complete. |
@etr2460 Ephemeral environment creation failed. Please check the Actions logs for details. |
Codecov Report
@@ Coverage Diff @@
## master #17100 +/- ##
==========================================
- Coverage 76.88% 76.67% -0.22%
==========================================
Files 1031 1031
Lines 55183 55188 +5
Branches 7505 7505
==========================================
- Hits 42430 42316 -114
- Misses 12501 12620 +119
Partials 252 252
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/testenv up |
@etr2460 Container image not yet published for this PR. Please try again when build is complete. |
@etr2460 Ephemeral environment creation failed. Please check the Actions logs for details. |
/testenv up |
@etr2460 Ephemeral environment spinning up at http://35.162.75.252:8080. Credentials are |
Ephemeral environment shutdown and build artifacts deleted. |
(cherry picked from commit 031f594)
SUMMARY
We were still caching 404s for static resources because
send_file
uses the default cache timeout of 1 year when returning any file. This should ensure that when we return a 404/500 error, we never cache the result.TESTING INSTRUCTIONS
CI and test env
ADDITIONAL INFORMATION
to: @betodealmeida @graceguo-supercat @john-bodley @rusackas