ModPagespeedDisableFilters - restrict touching javascript files? it cause problems

59 views
Skip to first unread message

Jack Davis

unread,
Feb 3, 2018, 9:03:54 PM2/3/18
to mod-pagespeed-discuss
I found that filters rewrite_javascript and combine_javascript makes some sites buggy so I decided to disable them.

So I added this lines:

ModPagespeedForbidFilters rewrite_javascript,combine_javascript
ModPagespeedDisableFilters rewrite_javascript,combine_javascript

to file:

/etc/apache2/mods-available/pagespeed.conf

then I deleted cache (/var/cache/mod_pagespeed) and restarted apache.

But javascript files are still touched by modpagespeed (not combined or rewrited):
<script type="text/javascript" src="js/crypto/aes.js.pagespeed.ce.T_EI5FhHgN.js"></script>
<script type="text/javascript" src="js/crypto/sha512.js.pagespeed.ce.mzthzyggUD.js"></script>
<script type="text/javascript" src="js/crypto/pbkdf2.js.pagespeed.ce.pQiX_qJSuX.js"></script>
<script type="text/javascript" src="js/crypto/password.js.pagespeed.ce.qkE54i94bN.js"></script>


When I change "ModPagespeed on" to "ModPagespeed off" in config, js files are loaded directly:

<script type="text/javascript" src="js/crypto/aes.js"></script>
<script type="text/javascript" src="js/crypto/sha512.js"></script>
<script type="text/javascript" src="js/crypto/pbkdf2.js"></script>
<script type="text/javascript" src="js/crypto/password.js"></script>
...and the website works.

So I don't understand what modpagespeed do with js files if there is no enabled filter related to them.  Is possible to restrict it?

Otto van der Schaaf

unread,
Feb 4, 2018, 4:22:31 AM2/4/18
to mod-pagesp...@googlegroups.com
You can direct PageSpeed to leave these files alone using url control:

After you disabled rewrite_javascript and combine_javascript, extend_cache was still applying to the js files.
The contents of the script files should have been unchanged, so if that broke the site then apparently something is 
depending on the original script urls to be around.

Otto

--
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/09fd5fd5-ba6d-4a73-b87b-1f3c18e4de5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Longinos

unread,
Feb 4, 2018, 5:42:46 AM2/4/18
to mod-pagespeed-discuss
As you can see the rewritd javascript files are getting a ce like ".js.pagespeed.ce.T_EI5FhHgN.js". This say the file get "cache extended".
As far as you have disbled the rewrite javascript, I think the only "manipulation2 is extend the cache life time
Reply all
Reply to author
Forward
0 new messages