From d72a85c0224902005d22ad4981358fcc985b318c Mon Sep 17 00:00:00 2001
From: Richard Hulse <richard.hulse@radionz.co.nz>
Date: Fri, 2 Dec 2011 10:44:34 +1300
Subject: [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
---
 railties/guides/source/asset_pipeline.textile | 8 --------
 1 file changed, 8 deletions(-)

(limited to 'railties/guides/source/asset_pipeline.textile')

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;
 }
-- 
cgit v1.2.3

