Skip to content

Instantly share code, notes, and snippets.

@cema-sp
Created September 18, 2014 10:31
Show Gist options
  • Save cema-sp/49e82368e6f7bc9df317 to your computer and use it in GitHub Desktop.
Save cema-sp/49e82368e6f7bc9df317 to your computer and use it in GitHub Desktop.
Apache Rails Caching
<LocationMatch "^/assets/.*$">
Header unset Last-Modified
Header unset ETag
FileETag None
ExpiresActive On
ExpiresDefault "access plus 1 year"
</LocationMatch>
@cema-sp
Copy link
Author

cema-sp commented Sep 18, 2014

Configuration for caching on apache server

from "Agile web development with RoR" book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment