cant use pagespeed
This commit is contained in:
parent
a6c4d13384
commit
a852b4bd31
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue