cant use pagespeed

This commit is contained in:
Ken Johnson 2020-11-02 16:07:34 -08:00
parent a6c4d13384
commit a852b4bd31
1 changed files with 8 additions and 8 deletions

View File

@ -28,14 +28,14 @@ server {
# Pagespeed is supported by Wordpress, so if your server is built
# with the `ngx_pagespeed` module, uncomment this line to enable it.
pagespeed on;
pagespeed RedisServer "localhost:6379";
pagespeed LRUCacheKbPerProcess 8192;
pagespeed LRUCacheByteLimit 16384;
pagespeed CreateSharedMemoryMetadataCache "/var/cache/pagespeed/" 51200;
location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" { add_header "" ""; }
location ~ "^/ngx_pagespeed_static/" { }
location ~ "^/ngx_pagespeed_beacon$" { }
#pagespeed on;
#pagespeed RedisServer "localhost:6379";
#pagespeed LRUCacheKbPerProcess 8192;
#pagespeed LRUCacheByteLimit 16384;
#pagespeed CreateSharedMemoryMetadataCache "/var/cache/pagespeed/" 51200;
#location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" { add_header "" ""; }
#location ~ "^/ngx_pagespeed_static/" { }
#location ~ "^/ngx_pagespeed_beacon$" { }
# HTTP response headers borrowed from Nextcloud `.htaccess`
add_header Referrer-Policy "no-referrer" always;