Skip to content
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

Update cache-control header #2910

Merged
merged 1 commit into from
Aug 24, 2018
Merged

Conversation

richard-cox
Copy link
Contributor

@richard-cox richard-cox commented Aug 24, 2018

  • Static files served via backed (AIO + cf push world) should have cache-control: no-cache
  • IE caches some https content, therefore jetstream shouldn't cache any requests cache-control: no-store

Addresses half of #2807

- Static files served via backed (AIO + cf push world) should have `cache-control: no-cache`
- IE caches some https content, therefore jetstream shouldn't cache any requests `cache-control: no-store`
@cfdreddbot
Copy link

Hey richard-cox!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

@codecov
Copy link

codecov bot commented Aug 24, 2018

Codecov Report

Merging #2910 into v2-master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           v2-master    #2910   +/-   ##
==========================================
  Coverage      71.35%   71.35%           
==========================================
  Files            604      604           
  Lines          25857    25857           
  Branches        5855     5855           
==========================================
  Hits           18449    18449           
  Misses          7408     7408

Copy link
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure that the logic here is correct.

Surely we want to allow the browser to cache the application (static resources) - so that it doesn't have to download the app each time?

Isn't it the non-static resources - i.e. the API requests that we don't want it to cache/store ?

@nwmac nwmac merged commit 8e99ca3 into v2-master Aug 24, 2018
@nwmac nwmac deleted the apply-cache-control-non-static branch August 24, 2018 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants