Hi all,
It seems that ModPagespeedMapRewriteDomain is not respecting ModPagespeedDisallow.
I am trying to avoid getting .ttf, .eot and .woff files served through my CDN as it creates problems in firefox with Cross Domain issues. So I wish to disallow these filetypes from getting rewritten with the CDN domain.
Here is my configuration for this.
ModPagespeedDisallow "*.ttf"
ModPagespeedDisallow "*.woff"
ModPagespeedDisallow "*.eot"
This is put in pagespeed.conf
In the .htaccess for my site I have the following.
ModPagespeed on
ModPagespeedMapRewriteDomain
heycdn.hellerupparkhotel.dk hellerupparkhotel.dkHere is the output from console with the above configuration active:
Cross-Origin
Request Blocked: The Same Origin Policy disallows reading the remote
resource at
http://heycdn.hellerupparkhotel.dk/wp-content/plugins/simple-social-icons/font/fontello.woff?78492063.
This can be fixed by moving the resource to the same domain or enabling
CORS.
Naturally pagespeed has not done any optimization on the font, but it still rewrites the domain.
Shouldn't ModPagespeedMapRewriteDomain respect ModPagespeedDisallow matches?
Please advise.
Thanks,
Kim Frederiksen