Unable to see X-Mod-Pagespeed header using curl

257 views
Skip to first unread message

Vimal Jain

unread,
Apr 10, 2014, 6:11:08 AM4/10/14
to mod-pagesp...@googlegroups.com
Hi,
I have apache 2.2 with mod_pagespeed installed ( centOS ).
I don't see  "X-Mod-Pagespeed" header in curl command o/p.

curl -D- http://try.rummycircle.com | less

What could be possible reason ?
As far as i know , pagespeed gets enabled automatically.But its not happening in my case.
Also i am using Https.
Please help.

Jeff Kaufman

unread,
Apr 10, 2014, 4:14:33 PM4/10/14
to mod-pagespeed-discuss
It doesn't look to me like you have pagepseed running on your site.
In addition to the missing header I also don't see it responding to
the debug query parameters: curl
https://try.rummycircle.com/?PageSpeedFilters=collapse_whitespace
still shows whitespace.

How did you install it?
> --
> 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/61f91268-ca5c-473a-856a-08f2ea996bb8%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Vimal Jain

unread,
Apr 11, 2014, 12:47:41 AM4/11/14
to mod-pagesp...@googlegroups.com
Hi Jeff,
I installed it by following the guidelines given in https://developers.google.com/speed/pagespeed/module/download.
Also , the one you tried i.e. "try.rummycircle.com" is different then where i installed.
I installed it on one machine and made host entry in /etc/hosts.
You should look at this location "https://54.254.244.122".
Basically , i have 2 machines where my website is running , one has pagespeed installed , and one does not have it.
So the one you tried does not have pagespeed , but the other one on which i am working and have given you the IP above has pagespeed installed.

Please help here.


On Friday, April 11, 2014 1:44:33 AM UTC+5:30, Jeff Kaufman wrote:
It doesn't look to me like you have pagepseed running on your site.
In addition to the missing header I also don't see it responding to
the debug query parameters:  curl
https://try.rummycircle.com/?PageSpeedFilters=collapse_whitespace
still shows whitespace.

How did you install it?

On Thu, Apr 10, 2014 at 6:11 AM, Vimal Jain <vkj...@gmail.com> wrote:
> Hi,
> I have apache 2.2 with mod_pagespeed installed ( centOS ).
> I don't see  "X-Mod-Pagespeed" header in curl command o/p.
>
> curl -D- http://try.rummycircle.com | less
>
> What could be possible reason ?
> As far as i know , pagespeed gets enabled automatically.But its not
> happening in my case.
> Also i am using Https.
> Please help.
>
> --
> 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

Vimal Jain

unread,
Apr 11, 2014, 1:01:08 AM4/11/14
to mod-pagesp...@googlegroups.com
This are messages i received while installing pagespeed.

[root@ip-10-14-21-13 tomcat]# sudo rpm -U mod-pagespeed-*.rpm
warning: mod-pagespeed-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
Starting atd: [  OK  ]
job 1 at 2014-04-11 10:30


On Friday, April 11, 2014 1:44:33 AM UTC+5:30, Jeff Kaufman wrote:
It doesn't look to me like you have pagepseed running on your site.
In addition to the missing header I also don't see it responding to
the debug query parameters:  curl
https://try.rummycircle.com/?PageSpeedFilters=collapse_whitespace
still shows whitespace.

How did you install it?

On Thu, Apr 10, 2014 at 6:11 AM, Vimal Jain <vkj...@gmail.com> wrote:
> Hi,
> I have apache 2.2 with mod_pagespeed installed ( centOS ).
> I don't see  "X-Mod-Pagespeed" header in curl command o/p.
>
> curl -D- http://try.rummycircle.com | less
>
> What could be possible reason ?
> As far as i know , pagespeed gets enabled automatically.But its not
> happening in my case.
> Also i am using Https.
> Please help.
>
> --
> 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

Jeff Kaufman

unread,
Apr 11, 2014, 9:47:04 AM4/11/14
to mod-pagespeed-discuss
It looks like one needs a password to test this server?

$ curl -k -H 'Host: try.rummycircle.com' https://54.254.244.122/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<p>Additionally, a 401 Authorization Required
error was encountered while trying to use an ErrorDocument to handle
the request.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at try.rummycircle.com Port 443</address>
</body></html>
>> > email to mod-pagespeed-di...@googlegroups.com.
> --
> 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/614c9664-c4e3-479b-8a9a-7fb44101b303%40googlegroups.com.

Jeff Kaufman

unread,
Apr 11, 2014, 10:37:34 AM4/11/14
to mod-pagespeed-discuss
Testing this again, it no longer seems to require authorization.

I do see pagespeed is installed:

$ curl -s -k -H 'Host: try.rummycircle.com' https://54.254.244.122/ | head -n 4
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"/>
$ curl -s -k -H 'Host: try.rummycircle.com'
https://54.254.244.122/?PageSpeedFilters=collapse_whitespace | head -n
4
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>

And I see combine_javascript and combine_css active:

$ curl -s -k -H 'Host: try.rummycircle.com' https://54.254.244.122/ |
grep -i pagespeed
<link
href="https://try.rummycircle.com/themes/default/css/A.reset.css,,qv1385510521+rc_lp_main.css,,qv==2005+overlay-registration.css,,qv1385510521+lp_with_reg_global.css,,qv==2006,Mcc.Wazo__2G2u.css.pagespeed.cf.xJpaQpB7wh.css"
rel="stylesheet" type="text/css"/>
<script
src="https://try.rummycircle.com/js/config_list.js,,qv1385632759,Mjm.OynFfHjmq2.js+common.js,,qv1385632622,Mjm.OOYWTYloDz.js+landing.js,qv1385510521.pagespeed.jc.kl9yAWx8i2.js"></script><script>eval(mod_pagespeed_FC8Zt0v1rJ);</script>


But I don't see the X-Mod-Pagespeed header. Do you have any settings
in your apache config file that would be removing the header?

Matt Atterbury

unread,
Apr 11, 2014, 10:42:08 AM4/11/14
to mod-pagespeed-discuss
On Fri, Apr 11, 2014 at 10:37 AM, Jeff Kaufman <jef...@google.com> wrote:
But I don't see the X-Mod-Pagespeed header.  Do you have any settings
in your apache config file that would be removing the header?

There is no way to remove the header when using mod_pagespeed. You can set it to blank but it is always sent.

Vimal Jain

unread,
Apr 11, 2014, 12:48:51 PM4/11/14
to mod-pagesp...@googlegroups.com
Thanks Jeff and Matterbury,
Jeff,
I dont have any such settings in my apache conf.
What could be possible reason ?
Reply all
Reply to author
Forward
0 new messages