Detect when Apache mod_pagespeed is running #234
Comments
|
The easy way:
I believe the more correct way (due to some issues with PHP running as CGI not detected by apache_get_modules):
Not sure if it helps. Actually, not sure who needs mod_pagespeed or Apache, since one is lazy admin scheme, while another is monster of 90's, so unless you're stuck with project that "requires" Apache, and/or loss of time for rewriting outweights possible benefit, I would discourage use of both. |
|
@raamdev I agree, I tested the Here are a couple other ways to check for Pagespeed that I just tested...
|
|
Reference article: https://www.digitalocean.com/community/tutorials/how-to-get-started-with-mod_pagespeed-with-apache-on-an-ubuntu-and-debian-cloud-server Explains how to install Pagespeed on Ubuntu, in case you'd like to run a few tests. |
|
+1 Indeed, you approach seems better. The general idea here is to know whether to enable HTML Compressor? (No, in case of pagespeed?) |
|
@sous-studio @jaswsinc Thanks so much for jumping in here! @jaswsinc I like the method of checking the headers. It seems a bit more reliable IMO, as the @sous-studio writes...
This issue wasn't related to the HTML Compressor feature. We need to check for the presence of the Pagespeed module because one feature of that module involves stripping HTML comments from the source code, which would also strip out any HTML comments that Quick Cache adds. A site owner may see those Quick Cache notes missing and think that there's a problem with Quick Cache, when in fact there is no problem and it's just Pagespeed stripping the comments. @jaswsinc Do you see any reason we should disable the HTML Compressor, or even mention something about the HTML Compressor, when Pagespeed is detected? |
Roger that :-) Well, if we are going to do a friendly note about Pagespeed and HTML comments, I think it might also be worth a little note in the HTML Compressor section of Quick Cache too. Not super important, but maybe something like... "It seems you have Pagespeed installed on this server. NOTE: Pagespeed and the HTML Compressor both perform similar tasks. If you intend to keep Pagespeed, you probably don't need the HTML Compressor enabled also; i.e. there is a potential for a conflict if you enable them both; since both of these applications do much the same thing." |
Will do. Thanks! :) |
|
Noting that a recent support issue was resolved by disabling |
Quick Cache should attempt to detect when Apache
mod_pagespeedis running and generate an alert that Quick Cache source code notes might be removed if the Pagespeed Remove Comments filter is enabled.Forked from #18 (comment).
The text was updated successfully, but these errors were encountered: