last-modified/etags - to include or not?

Posted by Kae Verens on Pro Webmasters See other posts from Pro Webmasters or by Kae Verens
Published on 2012-03-23T08:59:42Z Indexed on 2012/03/23 11:41 UTC
Read the original article Hit count: 315

Filed under:
|

Google's PageSpeed plugin suggests that a website should include Last-Modified and ETag headers:

Specify a cache validator "Resources that do not specify a cache validator cannot be refreshed efficiently. Specify a Last-Modified or ETag header to enable cache validation"

However, Apache suggests that by not including them at all, we speed up websites by eliminating If-Modified-Since and If-None-Match requests:

http://www.askapache.com/htaccess/apache-speed-last-modified.html

these are in direct opposition - which should be implemented? I'm leaning towards Apache's suggestion, as when I want a file cached, I don't want it refreshed.

© Pro Webmasters or respective owner

Related posts about apache2

Related posts about page-speed