Merge pull request #21 from pagespeed/jefftk-clear-etag

clear etag; pagespeed doesn't need them
This commit is contained in:
Jeff Kaufman
2012-11-05 07:25:29 -08:00
+4
View File
@@ -615,6 +615,10 @@ ngx_http_pagespeed_header_filter(ngx_http_request_t* r) {
// and calculate on the fly.
ngx_http_clear_content_length(r);
// Pagespeed doesn't need etags: html is always not to be cached while
// resources are modified to have an etag-like hash in the url.
ngx_http_clear_etag(r);
r->filter_need_in_memory = 1;
if (r->err_status == 0) {