--------------------------------------------------------------------------------------------------------------------------
body {
background: url("/wp-content/uploads/2015/10/home.jpg") no-repeat scroll center top;
height: 100%
}
@import url('morestyles.css')
---------------------------------------------------------------------------------------------------------------------------
The relative reference like morestyles.css is rewritten in a correct way, however, the absolute reference (starting with "/") is written in an incorrect way.
So I want to know exactly where in the code the css file is opened and references are rewritten so that I could go there and make necessary changes for my application.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/5d0b1856-68d0-471d-854c-707b6ccd59f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Jeffrey,
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/c4403a30-90e9-414b-9bb8-d9740d34b8a4%40googlegroups.com.
For example, suppose http://rx/wp-content/themes/brainstorm/style.css has:
body {
background: url("/wp-content/uploads/2015/10/home.jpg") no-repeat scroll center top;
background: url("c-content/uploads/2015/10/home.jpg") no-repeat scroll center top;
height: 100%
}
When the CSS is sharded, it is rewritten to a URL like http://shardhost/rxkey/wp-content/themes/brainstorm/style.css. The rxkey part is a key derived from the rx hostname to allow shardhost accesses to use the right backend hostname (the secondary alias).
To allow for relative URLs in the CSS (without a leading-slash), and to allow resources referenced by the CSS to be shareded as well, all URLs in the CSS that do not specify a hostname need to be rewritten.
When rewriting a relative URL (like c-content/uploads/2015/10/home.jpg) the reference is correctly rewritten as http://shardhost/rxkey/c-content/uploads/2015/10/home.jpg so that it accesses the backend with hostname rx. However, when rewriting the absolute URL (/wp-content/uploads/2015/10/home.jpg) for sharding, it incorrectly rewrites it relative to the origin URL, so ends up with http://shardhost/wp-content/uploads/2015/10/home.jpg (which should be http://shardhost/rxkey/wp-content/uploads/2015/10/home.jpg ) so that when the backend is accessed, it uses the primary alias as the hostname, which is incorrect and likely results in a 404.
I am still not able to see the logs.
I tried doing LOG(ERROR) << "some string" ;.
I tried to check the latest log files. But I can not see any log messages. Could you please elaborate more on the logs? Thanks!