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:
parent
8c603918ab
commit
3fa73324c5
1 changed files with 2 additions and 2 deletions
|
@ -502,14 +502,14 @@ For Apache:
|
|||
|
||||
```apache
|
||||
# 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
|
||||
Header unset ETag
|
||||
FileETag None
|
||||
# RFC says only cache for 1 year
|
||||
ExpiresActive On
|
||||
ExpiresDefault "access plus 1 year"
|
||||
</LocationMatch>
|
||||
</Location>
|
||||
```
|
||||
|
||||
For nginx:
|
||||
|
|
Loading…
Reference in a new issue