Pagespeed caching css, annoying to develop

2019-02-07 22:21发布

I'm working on a site which I havent coded from scratch and in firebug the css files are being displayed as: style.css.pagespeed.ce.5d2Z68nynm.css with the pagespeed extension. Can anyone tell me what's doing this as I can't find it. I'm guessing mod-pagespeed possibly running on server? I want to turn it off for now because it's caching my css and stopping updates which is really annoying to develop with.

Thanks in advance.

9条回答
贪生不怕死
2楼-- · 2019-02-07 22:47

According to http://code.google.com/speed/page-speed/docs/using_mod.html#htaccess you can turn off the module with the line ModPagespeed off in a .htaccess file.

The best solution would be to have a non-live development environment that didn't have mod_pagespeed on at all, or where it could be added only for some final testing.

查看更多
地球回转人心会变
3楼-- · 2019-02-07 22:47

To disable complete module, try to have the following code in your .htaccess file

<IfModule pagespeed_module>
ModPagespeed off
</IfModule>
查看更多
Lonely孤独者°
4楼-- · 2019-02-07 22:58

Another option for resetting the cache is described here:

Find out where is the cache folder, it's defined in the config file under ModPagespeedFileCachePath property.

Then run the following command from shell:

touch <path_to_pagespeed_cache>/cache.flush
(In my case: touch /var/cache/mod_pagespeed/cache.flush)

That's it. The cache was reset.

查看更多
登录 后发表回答