docbrown/app/controllers/concerns
Vaidehi Joshi df990afadc
Conditionally remove no-cache from Fastly headers (#9631) [deploy]
* Rename FastlyHeaders to CachingHeaders, conditionally experiment with removing no-cache

We suspect that it is safe to remove `no-cache` entirely from the Cache-Control headers that are sent
along to Fastly, but there is no great way to confirm this hypothesis. We're testing this by experimenting
on one single article. We will conditionally default to the same headers that we send to Nginx, and send
those headers to Fastly (by removing `no-cache` and adding in `max-age`, which should be ignored since Fastly
also has Surrogate-Control headers added to it, which include a `max-age`, which Fastly should prioritize
over any other `max-age`.

Once we've confirmed that this doesn't cause issues on the Fastly side, we can remove this check and use
the same Cache-Control headers for both Fastly and Nginx.

* Add check for request.env[REQUEST_PATH].present?
2020-08-05 12:34:12 -07:00
..
.keep Initial commit 2018-02-28 16:11:08 -05:00
caching_headers.rb Conditionally remove no-cache from Fastly headers (#9631) [deploy] 2020-08-05 12:34:12 -07:00
image_uploads.rb [deploy] Remove logging of image data to Datadog (#7829) 2020-05-13 16:23:42 -04:00
listings_toolkit.rb Update CODEOWNERS and team names in TODO comments (#9460) 2020-07-24 12:17:20 +07:00
session_current_user.rb Refactor session_current_user_id in a shared concern (#4936) 2019-11-26 13:21:56 -05:00
valid_request.rb Rubocop: re-activate Style/RegexpLiteral and fix violations (#9418) 2020-07-22 16:28:27 +02:00
verify_setup_completed.rb [deploy] Site Config: Get Started Section and Show Required Fields (#9289) 2020-07-20 08:20:15 -04:00