[DONE] RFE: work around ?ModPagespeed=noscript
Posted: Sat Dec 28, 2013 1:33 pm
Hello Giorgio. After the holidays, would you please work around ModPagespeed (an Apache module by Google) which hides already downloaded pages? Maybe as a script surrogate? Websites are increasingly using this for optimization.
In short, if scripts are disabled, ModPagespeed creates a <noscript> element with both a redirect and a stylesheet to hide already downloaded page.
Redirection can be blocked with noscript.forbidMetaRefresh set to true.
Website is downloaded, but hidden from view within the <noscript> tag's <style>.
I believe a surrogate could only strip <style> from inside <noscript> if ModPagespeed is detected, so if a user is already blocking meta-redirects inside <noscript>, they get a working website.
An example URL and where it redirects to:
I wish you pleasant time and happy holidays. 
In short, if scripts are disabled, ModPagespeed creates a <noscript> element with both a redirect and a stylesheet to hide already downloaded page.
Redirection can be blocked with noscript.forbidMetaRefresh set to true.
Website is downloaded, but hidden from view within the <noscript> tag's <style>.
I believe a surrogate could only strip <style> from inside <noscript> if ModPagespeed is detected, so if a user is already blocking meta-redirects inside <noscript>, they get a working website.
Code: Select all
<noscript><meta HTTP-EQUIV="refresh" content="0;url='http://www.example.com/?ModPagespeed=noscript'" /><style><!--table,div,span,font,p{display:none} --></style><div style="display:block">Please click <a href="http://www.example.com/?ModPagespeed=noscript">here</a> if you are not redirected within a few seconds.</div></noscript>Code: Select all
http://www.mhpbooks.com/
http://www.mhpbooks.com/?ModPagespeed=noscript