apache + mod_pagespeed + nginx missing javascript declarations

90 views
Skip to first unread message

László Imre

unread,
Jun 24, 2015, 3:35:07 PM6/24/15
to mod-pagesp...@googlegroups.com
Hello everybody! First, sorry for my english. I've a Debian 7 based server with all updates installed. The web-hosting management program is Parallels Plesk 12. The problem: the  Combine JavaScript filter does not include some script declarations before calling eval(). Example:

<script src="****.pagespeed.js"></script>
<script>eval(mod_pagespeed_xxxxxx1)</script>
<script>eval(mod_pagespeed_xxxxxx2)</script>
<script>eval(mod_pagespeed_xxxxxx3)</script>
<script>eval(mod_pagespeed_xxxxxx4)</script>
<script>eval(mod_pagespeed_xxxxxx5)</script>

The browser's javascript console reports xy object or function is underfined, etc. When I open the ****.pagespeed.js file:

var mod_pagespeed_xxxxxx1 = "[long-script-declaration-here-everything-ok-correct-order-etc]";
var mod_pagespeed_xxxxxx2 = "[EMPTY]";
var mod_pagespeed_xxxxxx3 = "[long-script-declaration-here-everything-ok-correct-order-etc]";
var mod_pagespeed_xxxxxx4 = "[long-script-declaration-here-everything-ok-correct-order-etc]";
var mod_pagespeed_xxxxxx5 = "[EMPTY]";

After flushing cache it works normal, but after a few hours one or more script declaration is missing.
It is possible that the nginx reverse proxy cause this problem? I do not think, ut I have no idea. :(

Combine JS is a very very useful function. I need it. Plesk generated config files are OK.

Joshua Marantz

unread,
Jun 24, 2015, 3:43:21 PM6/24/15
to mod-pagespeed-discuss
What version of mod_pagespeed is running?  We did have a combine_javascript issue interacting with rewrite_javascript sometime back, but that was fixed for 1.9.

-Josh

--
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/53e76cf9-bc18-4841-80ca-cad0e288729e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

László Imre

unread,
Jun 24, 2015, 4:02:08 PM6/24/15
to mod-pagesp...@googlegroups.com
Hello Josh,

mod-pagespeed-sta 1.9.32.4-r725 amd64

In my config, rewrite_javascript and inline_javascript filters are in the Disabled and Forbidden list.

Jeff Kaufman

unread,
Jun 25, 2015, 9:23:05 AM6/25/15
to mod-pagespeed-discuss
On Wed, Jun 24, 2015 at 3:35 PM, László Imre <dj.t...@gmail.com> wrote:
> var mod_pagespeed_xxxxxx2 = "[EMPTY]";

Are you seeing the literal string "[EMPTY]" or is it just the empty string, ""?

László Imre

unread,
Jul 5, 2015, 9:02:14 AM7/5/15
to mod-pagesp...@googlegroups.com
Empty string of course.

Jeff Kaufman

unread,
Jul 5, 2015, 9:19:35 AM7/5/15
to mod-pagespeed-discuss

I think this will probably be fixed in our upcoming point release where we stop caching resources we see as empty.

https://github.com/pagespeed/mod_pagespeed/issues/1050

--
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.

László Imre

unread,
Jul 5, 2015, 2:02:02 PM7/5/15
to mod-pagesp...@googlegroups.com
Thanks, waiting for the next release.
Reply all
Reply to author
Forward
0 new messages