1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

for recommended Apache configuration of asset pipeline, use <Location> instead of <LocationMatch>,

to avoid unnecessary reg ex parsing and code
<http://httpd.apache.org/docs/2.2/mod/core.html#location
(recommended by @jja). - @erikj
This commit is contained in:
Erik Johnson 2013-01-17 14:25:18 -07:00
parent 8c603918ab
commit 3fa73324c5

View file

@ -502,14 +502,14 @@ For Apache:
```apache ```apache
# The Expires* directives requires the Apache module `mod_expires` to be enabled. # The Expires* directives requires the Apache module `mod_expires` to be enabled.
<LocationMatch "^/assets/.*$"> <Location /assets/>
# Use of ETag is discouraged when Last-Modified is present # Use of ETag is discouraged when Last-Modified is present
Header unset ETag Header unset ETag
FileETag None FileETag None
# RFC says only cache for 1 year # RFC says only cache for 1 year
ExpiresActive On ExpiresActive On
ExpiresDefault "access plus 1 year" ExpiresDefault "access plus 1 year"
</LocationMatch> </Location>
``` ```
For nginx: For nginx: