utopia icon indicating copy to clipboard operation
utopia copied to clipboard

Static files don't get proper cache control headers when running on nginx.

Open huba opened this issue 8 years ago • 2 comments

Responses generated by Utopia::Static when running on nginx don't get a Cache-Control header at all. Strangely responses generated by Utopia::Content don't have this problem. And it also works fine when running on puma with RACK_ENV=:development.

huba avatar Apr 16 '17 02:04 huba

Hmm, that is odd.

ioquatix avatar Apr 16 '17 09:04 ioquatix

public/ is normally served by web server, not application.

ioquatix avatar Apr 16 '17 10:04 ioquatix