Pagespeed caching css, annoying to develop

前端 未结 9 1926
耶瑟儿~
耶瑟儿~ 2020-12-29 23:45

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 extens

9条回答
  •  隐瞒了意图╮
    2020-12-30 00:36

    To make mod_pagespeed reflect changes to assets immediately, you can configure LoadFromFile: https://developers.google.com/speed/pagespeed/module/domains#ModPagespeedLoadFromFile

    This will not work for css/js/images served from virtual handlers, but any changes to static content will be re-optimized immediately. In addition to that, optimization itself will usually be finished a lot faster because loading assets from disk is cheaper then fetching them from http(s).

提交回复
热议问题