incubator-pagespeed-ngx
incubator-pagespeed-ngx copied to clipboard
rewrite css image but get 404
at first, i want to change my image which is referenced from CSS, like:
<a title="" class="banner_img action_jump" style="background-image: url("//koss.iyong.com/swift/v1/iyong_public/iyong_2504866249294336/image/20180425/1524643445336016525.jpg");" href="product.html?proTypeID=2597685376157056" target="_self"></a>
so i enable the filter: pagespeed EnableFilters rewrite_css; pagespeed EnableFilters combine_css; pagespeed EnableFilters fallback_rewrite_css_urls; pagespeed EnableFilters prioritize_critical_css,flatten_css_imports,rewrite_style_attributes,rewrite_style_attributes_with_url,rewrite_images;
yes,it can change my image to webp as base64.but it make my important CSS file 404?
my origin html code --> link rel="stylesheet" href="http://css.j-cc.cn/css/webmain.css?v=ud_20181122" when enable filter: html code changed --> link rel="stylesheet" href="http://css.j-cc.cn/css/A.webmain.css,qv=ud_20181122.pagespeed.cf.Fr3ywSY3dq.css"
Is css.j.cc.cn your domain?, most relevant, is pagespeed module runing in that domain?. If you have pagespeed Domain css.j-cc.cn; in your config, but pagespeed is not running in that domain, pagespeed rewrite the url, but css.j-cc.cn don´t have the rewrited resource.