docbrown/app/controllers
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
..
api/v0 Rubocop: routine fixes (#9345) 2020-07-16 18:18:13 +02:00
concerns Conditionally remove no-cache from Fastly headers (#9631) [deploy] 2020-08-05 12:34:12 -07:00
incoming_webhooks Rubocop: fix additional violations in todo file (#9218) 2020-07-09 10:25:44 -04:00
internal [deploy] Award badges asynchronously in internal (#9582) 2020-07-31 19:09:51 -04:00
notifications Rubocop: fix additional violations in todo file (#9218) 2020-07-09 10:25:44 -04:00
oauth Change Webhook::DestroyJob to Wehook::DestroyWorker and move to sidekiq (#5424) [deploy] 2020-01-13 12:38:10 -06:00
resource_admin Correct some lingering /admin paths (#9630) [deploy] 2020-08-04 13:16:17 -05:00
stories Rubocop: fix additional violations in todo file (#9218) 2020-07-09 10:25:44 -04:00
api_secrets_controller.rb Add ApplicationRecord#errors_as_sentence (#8265) 2020-06-04 16:02:41 +02:00
application_controller.rb Conditionally remove no-cache from Fastly headers (#9631) [deploy] 2020-08-05 12:34:12 -07:00
application_metal_controller.rb Add ApplicationMetalController to relevant controllers (#4937) 2019-11-26 16:29:07 -05:00
article_approvals_controller.rb Allow tag mods to approve posts even if they mod just one tag (#6525) [deploy] 2020-03-08 15:42:38 -04:00
articles_controller.rb [deploy] Add index and show pages for series (#9201) 2020-07-29 10:01:52 -04:00
async_info_controller.rb [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
badges_controller.rb Add badges index page. (#4236) 2019-10-06 17:34:52 -04:00
buffer_updates_controller.rb Rubocop: enable and fix Style/Send and Style/Next (#9366) 2020-07-20 16:28:00 +02:00
buffered_articles_controller.rb Rubocop: move dot in multi-line calls to leading position (#9262) 2020-07-16 15:51:11 +02:00
chat_channel_memberships_controller.rb [deploy] Redirect override (#9469) 2020-07-23 10:28:28 -04:00
chat_channels_controller.rb [deploy] Update /ban for Connect (#9459) 2020-07-23 09:49:54 -04:00
collections_controller.rb [deploy] Add index and show pages for series (#9201) 2020-07-29 10:01:52 -04:00
comments_controller.rb Refactoring comments_controller#create reducing lines (#9162) 2020-07-10 17:24:36 +02:00
credits_controller.rb Make credit pricing configurable (#9326) 2020-07-24 12:03:13 -04:00
dashboards_controller.rb Standardize ActiveRecord order clauses (#9395) 2020-07-20 10:00:51 -04:00
display_ad_events_controller.rb Ignore unused display_ads columns (#6785) 2020-03-25 17:59:53 -04:00
email_authorizations_controller.rb Standardize ActiveRecord order clauses (#9395) 2020-07-20 10:00:51 -04:00
email_subscriptions_controller.rb Replaced remaining hardcoded DEV with the configurable community name (#7435) 2020-04-22 17:16:21 +03:00
events_controller.rb Return a 404 response If @event is Not Found (#5798) [deploy] 2020-02-03 11:30:52 -05:00
feedback_messages_controller.rb Fix erblint errors on the app/views/pages folder (#8401) 2020-06-11 15:46:50 +02:00
followings_controller.rb Rubocop: move dot in multi-line calls to leading position (#9262) 2020-07-16 15:51:11 +02:00
follows_controller.rb Rubocop: routine fixes (#9345) 2020-07-16 18:18:13 +02:00
ga_events_controller.rb [deploy] Refactor: Remove Unnecessary logging from Video States, Stripe, and GA Events (#9207) 2020-07-08 11:59:31 -05:00
github_repos_controller.rb [deploy] Fix bug in determining if repo is featured (#8676) 2020-06-15 16:39:30 +02:00
html_variant_successes_controller.rb Move HtmlVariantSuccessesCreate from job to inline (#5879) [deploy] 2020-02-04 10:24:39 -08:00
html_variant_trials_controller.rb Move HtmlVariantTrial#create inline (#5901) [deploy] 2020-02-04 17:29:46 -08:00
html_variants_controller.rb [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
image_uploads_controller.rb [deploy] Remove logging of image data to Datadog (#7829) 2020-05-13 16:23:42 -04:00
invitations_controller.rb [deploy] Invite users to join and create password (#9294) 2020-07-15 11:37:19 -04:00
liquid_embeds_controller.rb Modify headers to allow embed (#3935) 2019-09-03 16:38:04 -04:00
listings_controller.rb [deploy] Bug Fix:Redirect to Direct User Channel for Org Listings (#9616) 2020-08-04 10:37:15 -05:00
messages_controller.rb [deploy] Optimization/Bug Fix:Only Send Mentioned User Notifications, not all for every message (#9493) 2020-07-27 11:16:41 -05:00
moderations_controller.rb Rubocop: enable and fix new Rails cops (#9537) 2020-07-29 11:14:19 +02:00
notification_subscriptions_controller.rb Rubocop: move dot in multi-line calls to leading position (#9262) 2020-07-16 15:51:11 +02:00
notifications_controller.rb Rubocop: fix Metrics/CyclomaticComplexity and disable Metrics/AbcSize (#9221) 2020-07-10 15:26:05 +02:00
omniauth_callbacks_controller.rb [deploy] Refactor: Remove Omniauth Error Logs, Send to Honeybadger (#9205) 2020-07-08 11:21:57 -05:00
onboardings_controller.rb Cache onboarding at edge (#6966) 2020-03-31 16:12:14 +02:00
organizations_controller.rb [deploy] Allow org admins to delete their organizations (#9357) 2020-07-28 12:00:15 -04:00
page_views_controller.rb Standardize ActiveRecord order clauses (#9395) 2020-07-20 10:00:51 -04:00
pages_controller.rb Rubocop: move dot in multi-line calls to leading position (#9262) 2020-07-16 15:51:11 +02:00
partnerships_controller.rb Refactored creating sponsorships (#7946) 2020-05-19 18:00:01 -04:00
podcast_episodes_controller.rb Standardize ActiveRecord order clauses (#9395) 2020-07-20 10:00:51 -04:00
podcasts_controller.rb Standardize ActiveRecord order clauses (#9395) 2020-07-20 10:00:51 -04:00
poll_skips_controller.rb Small ActiveRecord optimizations: begone race conditions and hello bulk insert (#8436) 2020-06-15 17:57:14 +02:00
poll_votes_controller.rb [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
pro_accounts_controller.rb Add basic pro accounts lander test (#3433) 2019-07-09 22:10:50 -04:00
profile_pins_controller.rb CacheBuster refactoring (#4766) 2019-11-13 10:51:23 -05:00
pusher_controller.rb [deploy] Change from presence to private pusher channels (#9401) 2020-07-20 12:59:26 -04:00
rating_votes_controller.rb [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
reactions_controller.rb Rubocop: enable and fix new Rails cops (#9537) 2020-07-29 11:14:19 +02:00
reading_list_items_controller.rb [deploy] Execute Reading List searches in Elasticsearch (#7440) 2020-04-24 10:30:17 -04:00
registrations_controller.rb [deploy] Authentication refactoring: cleanups (#7576) 2020-04-29 10:33:30 -04:00
response_templates_controller.rb Add ApplicationRecord#errors_as_sentence (#8265) 2020-06-04 16:02:41 +02:00
search_controller.rb [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
service_worker_controller.rb Replace serviceworker-rails gem with custome implementation (#4987) [deploy] 2019-12-03 08:50:56 -05:00
shell_controller.rb Add edge caching to shell (#5146) [deploy] 2019-12-16 19:08:59 -05:00
sitemaps_controller.rb Rubocop: move dot in multi-line calls to leading position (#9262) 2020-07-16 15:51:11 +02:00
social_previews_controller.rb Rubocop: enable and fix new Rails cops (#9537) 2020-07-29 11:14:19 +02:00
stories_controller.rb Correct some lingering /admin paths (#9630) [deploy] 2020-08-04 13:16:17 -05:00
stripe_active_cards_controller.rb [deploy] Add audit logs for credit card actions (#9416) 2020-07-22 08:23:42 +07:00
tag_adjustments_controller.rb [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
tags_controller.rb Correct some lingering /admin paths (#9630) [deploy] 2020-08-04 13:16:17 -05:00
twilio_tokens_controller.rb Added rubocop-rails (#3059) 2019-06-06 09:47:57 -04:00
twitch_live_streams_controller.rb Embed Twitch Live Streaming (#2591) 2019-04-29 18:11:53 -04:00
twitch_stream_updates_controller.rb Replace Airbrake with Honeybadger (#5007) [deploy] 2019-12-05 11:29:51 -06:00
user_blocks_controller.rb Add ApplicationRecord#errors_as_sentence (#8265) 2020-06-04 16:02:41 +02:00
user_subscriptions_controller.rb UserSubscription backend refactor (#9060) 2020-07-02 12:08:37 -04:00
users_controller.rb Bug Fix:Validate User Password Length is Between 8-100 characters (#9447) 2020-07-22 11:40:23 -04:00
video_chats_controller.rb Routine rubocop fixes (#7356) 2020-04-17 15:48:39 +02:00
video_states_controller.rb [deploy] Refactor: Remove Unnecessary logging from Video States, Stripe, and GA Events (#9207) 2020-07-08 11:59:31 -05:00
videos_controller.rb Standardize ActiveRecord order clauses (#9395) 2020-07-20 10:00:51 -04:00