Merge pull request #21 from pagespeed/jefftk-clear-etag
clear etag; pagespeed doesn't need them
This commit is contained in:
@@ -615,6 +615,10 @@ ngx_http_pagespeed_header_filter(ngx_http_request_t* r) {
|
|||||||
// and calculate on the fly.
|
// and calculate on the fly.
|
||||||
ngx_http_clear_content_length(r);
|
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;
|
r->filter_need_in_memory = 1;
|
||||||
|
|
||||||
if (r->err_status == 0) {
|
if (r->err_status == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user