本文介绍了Pagespeed缓存css,讨厌开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个网站,我没有从头开始编码,在firebug css文件显示为:style.css.pagespeed.ce.5d2Z68nynm.css与pagespeed扩展。任何人都可以告诉我这是做什么,因为我找不到它。我猜猜mod-pagespeed可能在服务器上运行?我现在要关闭它,因为它正在缓存我的css和停止更新,这是真的很讨厌开发。

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.

提前感谢。

推荐答案

根据
您可以使用 ModPagespeed off 关闭该模块, code>在.htaccess文件中。

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

最好的解决方案是拥有一个没有mod_pagespeed的非实时开发环境,在那里它只能添加一些最终测试。

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.

这篇关于Pagespeed缓存css,讨厌开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 13:22