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