diff options
author | Richard Hulse <richard.hulse@radionz.co.nz> | 2011-12-02 10:44:34 +1300 |
---|---|---|
committer | Richard Hulse <richard.hulse@radionz.co.nz> | 2011-12-02 10:44:34 +1300 |
commit | d72a85c0224902005d22ad4981358fcc985b318c (patch) | |
tree | 46a08789970a368dc18253e42193bb6aa66c4352 /railties | |
parent | bb2adab79bd0fb039a368b424a3bc97bac073265 (diff) | |
download | rails-d72a85c0224902005d22ad4981358fcc985b318c.tar.gz rails-d72a85c0224902005d22ad4981358fcc985b318c.tar.bz2 rails-d72a85c0224902005d22ad4981358fcc985b318c.zip |
[docs] removed last-modifed line from examples
This is no longer best-practice.
ref:
http://stackoverflow.com/questions/8344186/rails-3-1-on-apache-pagespeed-says-specify-cache-validator-when-using-asset-p/8348385#8348385
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/asset_pipeline.textile | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile index 3681501293..8ff1035a1c 100644 --- a/railties/guides/source/asset_pipeline.textile +++ b/railties/guides/source/asset_pipeline.textile @@ -410,10 +410,6 @@ For Apache: <plain> <LocationMatch "^/assets/.*$"> - # Some browsers still send conditional-GET requests if there's a - # Last-Modified header or an ETag header even if they haven't - # reached the expiry date sent in the Expires header. - Header unset Last-Modified Header unset ETag FileETag None # RFC says only cache for 1 year @@ -429,10 +425,6 @@ location ~ ^/assets/ { expires 1y; add_header Cache-Control public; - # Some browsers still send conditional-GET requests if there's a - # Last-Modified header or an ETag header even if they haven't - # reached the expiry date sent in the Expires header. - add_header Last-Modified ""; add_header ETag ""; break; } |