bantilan opened a new issue #1561: Rewrite Domain doesn't work when type 
attribute comes first before src
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1561
 
 
   Hi guys,
   
   I have problem with the Rewrite Domain, to replace all of the resources to 
CDN link..
   
   In my site, everything is now in CDN, except for one.. 
   
   The rewrite doesn't work on script tag, when the type attribute comes first 
before the src tag.
   
   ```
   <link rel='stylesheet' id='jetpack_css-css' 
href='https://cdn.mywebsite.com/wp-content/plugins/jetpack/css/A.jetpack.css,qver=6.1.pagespeed.cf.Vv2HudEyab.css'
 type='text/css' media='all'/>
   <script type='text/javascript' 
src='https://mywebsite.com/wp-includes/js/jquery/jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js'></script>
   <script 
src="https://cdn.mywebsite.com/wp-includes,_js,_jquery,_jquery-migrate.min.js,qver==1.4.1+wp-content,_plugins,_reviews,_js,_tie.js,qver==4.9.6-RC1-43241.pagespeed.jc.UqiBdPGLR4.js";></script>
   <script>eval(mod_pagespeed_mUhmJEi5Tr);</script>
   <script>eval(mod_pagespeed_5ttSPx7AMQ);</script>
   ```
   Is this something to do with my configuration? Here is my config..
   
   ```
   pagespeed Domain https://cdn.mywebsite.com;
   pagespeed Domain cdn.mywebsite.com;
   
   pagespeed MapRewriteDomain "https://cdn.mywebsite.com"; 
"https://mywebsite.com";;
   pagespeed MapRewriteDomain cdn.mywebsite.com mywebsite.com;
   ```
   
   Thank you!
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to