Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

rails Cache-Control header not reliably set #5

Open
jhspaybar opened this issue Nov 26, 2016 · 1 comment
Open

rails Cache-Control header not reliably set #5

jhspaybar opened this issue Nov 26, 2016 · 1 comment

Comments

@jhspaybar
Copy link

jhspaybar commented Nov 26, 2016

location ~ /assets\/application-.* {
      gzip_static on;
      expires max;
      add_header Cache-Control public;
}

doesn't pick up assets like <%= stylesheet_link_tag 'spree/frontend/all', media: 'screen' %>
I think this should just be matching location ~ ^/assets/ as seen here http://guides.rubyonrails.org/asset_pipeline.html#highlighter_226731 .

I'd also be happy to override this myself, should I just copy an nginx into my container over the top of this one in the short term?

@jhspaybar
Copy link
Author

For what it's worth, I added this to my Dockerfile and it respects my settings COPY config/nginx.conf /etc/nginx/nginx.conf

matthewford added a commit to matthewford/rails-1 that referenced this issue Feb 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant