开发者

mod_pagespeed outputs stats but does nothing

开发者 https://www.devze.com 2023-01-23 18:15 出处:网络
I can see output stats with mod_pagespeed but it does not seam to be doing anything (all stats values stay at 0).

I can see output stats with mod_pagespeed but it does not seam to be doing anything (all stats values stay at 0).

serf_fetch_req开发者_如何学编程uest_count: 0
serf_fetch_bytes_count: 0
serf_fetch_time_duration_ms: 0
serf_fetch_cancel_count: 0

Anyone knows what can be going wrong?


Ok, I was able to found the blaming lines on my config:

// does NOT work with mod_pagespeed 
<FilesMatch "\.(js|css|html|htm|php|xml)$"> 
   SetOutputFilter DEFLATE 
</FilesMatch> 

So if you have some fancy DEFLATE options, disable them. On the other hand the below code works.

// does WORK with mod_pagespeed 
AddOutputFilterByType DEFLATE text/html text/plain text/xml font/ 
opentype font/truetype font/woff 
0

精彩评论

暂无评论...
验证码 换一张
取 消