diff options
author | Erik Johnson <ej@ucar.edu> | 2013-01-17 14:25:18 -0700 |
---|---|---|
committer | Erik Johnson <ej@ucar.edu> | 2013-01-17 14:25:18 -0700 |
commit | 3fa73324c59299e4c9ac68b81fa84fd7eea8eaac (patch) | |
tree | 286d465071c3add0b57aa49b500a7889d2a95d4c /guides | |
parent | 8c603918ab1be08b0e51db04f54dafb09cd22377 (diff) | |
download | rails-3fa73324c59299e4c9ac68b81fa84fd7eea8eaac.tar.gz rails-3fa73324c59299e4c9ac68b81fa84fd7eea8eaac.tar.bz2 rails-3fa73324c59299e4c9ac68b81fa84fd7eea8eaac.zip |
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
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/asset_pipeline.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md index 8dc7ba396d..34bf3ba210 100644 --- a/guides/source/asset_pipeline.md +++ b/guides/source/asset_pipeline.md @@ -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: |