Open aaronjorbin opened 6 years ago
Apologies if this is a duplicate of #1539
I have been scratching my head over this one too, and it's not a duplicate of #1539 .
Activating PageSpeed and disabling as many filters as possible still drops the Push under Nginx.
Even with a simple configuration as this one:
Version: 14: on
Filters
cw Collapse Whitespace
hw Flushes html
rc Remove Comments
Options
AvoidRenamingIntrospectiveJavascript (aris) True
BeaconUrl (bu) /ngx_pagespeed_beacon
EnableCachePurge (euci) True
EnableRewriting (e) 1
FetchHttps (fhs) enable
FileCacheCleanIntervalMs (afcci) 3600000
FileCacheInodeLimit (afcl) 500000
FileCachePath (afcp) /var/ngx_pagespeed_cache
FileCacheSizeKb (afc) 102400
GlobalAdminPath (ngap) /pagespeed_global_admin
HonorCsp (hcsp) True
LogDir (ald) /var/log/pagespeed
MemcachedServers (ams) 127.0.0.1:11211
RespectVary (rv) True
RewriteLevel (l) Pass Through
Statistics (ase) True
StatisticsLogging (asle) True
A Link-Preload header won't Push correctly under Nginx.
Add a PageSpeed=off
to the parameters and the push will be there.
@aaronjorbin , did you find anything since March 10?
Strange thing is even with all the filters deactivated, PageSpeed will try:
Trying to serve rewritten resource in-place: *path/to/my/pushed/ressource*
Note: my ressource is pushed but never called by the HTML, just for a test, and PageSpeed still tried to handle it.
Using
http2_push_preload on
for server push according to the instructions at https://www.nginx.com/blog/nginx-1-13-9-http2-server-push/#automatic-push works withpagespeed off
, but turning it on (even with no additional pagespeed configuration) disables server push.Here is some info on my setup.