POST /mod_pagespeed_beacon logs in Apache - How to Disable

2,766 views
Skip to first unread message

Bhagwat Adhikari

unread,
Dec 14, 2015, 6:41:29 AM12/14/15
to mod-pagespeed-discuss
I am getting mod_pagespeed_beacon continues in my logs with 204 & 403 (sometimes) codes

[14/Dec/2015:16:43:12 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews%2Freferer%2F4444%2FCEL-5-most-iconic-dresses-worn-by-madhuri-dixit-in-hum-aapke-hain-koun-4705136-PHO.html%3Freferrer_url%3D HTTP/1.1" 403 222
 [14/Dec/2015:16:36:02 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews-mrec%2Ftop-stories%2F4681%2FENT-BOW-birthday-special-mandakini-hot-pictures-5068580-PHO.html%3Fpg%3D7 HTTP/1.1" 204 -

I have tried disabling filters that use beacons https://developers.google.com/speed/pagespeed/module/faq#beacons & also added below line in Pagespeed.conf but no luck :(
 <Location /mod_pagespeed_beacon>
    Order allow,deny
 
</Location>
Please help to completely remove/disable mod_pagespeed_beacon from logs.

Jeff Kaufman

unread,
Dec 14, 2015, 7:59:20 AM12/14/15
to mod-pagespeed-discuss
Do you have both:

ModPagespeedCriticalImagesBeaconEnabled false

and

ModPagespeedDisableFilters add_instrumentation

?
> --
> 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/eef02c5b-dff7-49d3-ae0a-b12c413b5d8f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Bhagwat Adhikari

unread,
Dec 14, 2015, 8:25:56 AM12/14/15
to mod-pagespeed-discuss
I have only

ModPagespeedCriticalImagesBeaconEnabled false 
> email to mod-pagespeed-discuss+unsub...@googlegroups.com.

Jeff Kaufman

unread,
Dec 14, 2015, 8:26:23 AM12/14/15
to mod-pagespeed-discuss
Could you try adding the second one then?

On Mon, Dec 14, 2015 at 8:25 AM, Bhagwat Adhikari
>> > 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/8356bcb8-dd98-495c-8a8a-84003e299f97%40googlegroups.com.

Bhagwat Adhikari

unread,
Dec 14, 2015, 8:32:42 AM12/14/15
to mod-pagesp...@googlegroups.com
I have also tried to enabled the same but no luck
 
Still getting mod_pagespeed_beacon in my logs.  I have also tried to un comment  ModPagespeedStatistics off to remove this 

Is there anything else which I am missing here?

192.168.1.215 - - [14/Dec/2015:15:52:00 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews-mrec%2Ftop-stories%2F10339%2FENT-CELE-celebrities-at-mukesh-ambani-bash-for-harbhajan-singh-geeta-basra-5193041-PHO.html%3Fpg%3D12 HTTP/1.1" 204 -
192.168.1.215 - - [14/Dec/2015:15:52:03 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews%2Freferer%2F4444%2FJM-chant-this-mantra-during-exam-time-and-be-a-topper-4199788-PHO.html%3Freferrer_url%3Dhttp%253A%252F%252Fwww.google.co.in%252Fsearch%253Fclient%253Dms-opera_mb_no%2526channel%253Dbh%2526gws_rd%253Dcr%2526hl%253Den%2526ie%253DUTF-8%2526q%253DHanuman%252Bmantra%252BOf%252BSharpmemories HTTP/1.1" 204 -
192.168.1.215 - - [14/Dec/2015:15:52:03 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews-fbo%2Freferer%2F4444%2FJM-RIT-the-sex-culture-during-the-time-of-mahabharat-is-quite-shocking-5183271-PHO.html%3Fpg%3D6 HTTP/1.1" 204 -
192.168.1.215 - - [14/Dec/2015:15:52:04 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews-fbo%2Freferer%2F4444%2FTOP-reasons-why-women-should-not-wear-bras-while-sleeping-at-night-5181960-PHO.html%3Fpg%3D5 HTTP/1.1" 204 -
192.168.1.215 - - [14/Dec/2015:15:52:10 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews%2Freferer%2F4444%2FJM-28-deadly-punishments-mentioned-in-garuda-puran-4799242-PHO.html%3Fpg%3D6 HTTP/1.1" 204 -
192.168.1.215 - - [14/Dec/2015:15:52:10 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews%2Freferer%2F4444%2FJM-untold-story-of-lord-shiva-and-his-birth-4687549-PHO.html%3Fpg%3D2 HTTP/1.1" 204 -
192.168.1.215 - - [14/Dec/2015:15:52:14 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews-mrec%2Ftop-stories%2F10336%2FLIF-WEW-shocking-confessions-of-anonymous-virgins-5169493-PHO.html%3Fpg%3D2 HTTP/1.1" 204 -

You received this message because you are subscribed to a topic in the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mod-pagespeed-discuss/1uQGGjaua5c/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAMJ6YUvx04tP_sobODXZEviQvUzag6cDZgdezPT_2BYFgjCgaQ%40mail.gmail.com.

Jeff Kaufman

unread,
Dec 14, 2015, 9:38:23 AM12/14/15
to mod-pagespeed-discuss
Looking at one of the pages mentioned,
http://mdaily.bhaskar.com/news-mrec/top-stories/10339/ENT-CELE-celebrities-at-mukesh-ambani-bash-for-harbhajan-singh-geeta-basra-5193041-PHO.html
, I see:

pagespeed.criticalCssBeaconInit('/mod_pagespeed_beacon', ...

Could you try disabling prioritize_critical_css? That's a filter that
can't work without beaconing:

ModPagespeedDisableFilters prioritize_critical_css


On Mon, Dec 14, 2015 at 8:32 AM, Bhagwat Adhikari
> https://groups.google.com/d/msgid/mod-pagespeed-discuss/CA%2BE6oSEbHFXWmN2_vxm2-0B%3DO6SL_tHFM%2B2KvtXzMnezUb9nhA%40mail.gmail.com.

Bhagwat Adhikari

unread,
Dec 14, 2015, 9:58:57 AM12/14/15
to mod-pagesp...@googlegroups.com
Hi Jeff

I have disabled prioritize_critical_css but getting the same issue :( 

192.168.1.215 - - [14/Dec/2015:20:26:10 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews-fbo%2Freferer%2F4444%2FENT-TV-daya-jethalal-babita-you-will-be-shocked-to-know-education-qualifications-of-taa-5074996-PHO.html%3Fpg%3D7 HTTP/1.1" 20
192.168.1.215 - - [14/Dec/2015:20:26:22 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews%2Freferer%2F4444%2FENT-why-was-jiah-khan-called-aamir-khans-step-sister-4539614-PHO.html%3Fpg%3D3 HTTP/1.1" 204 -
192.168.1.215 - - [14/Dec/2015:20:26:27 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews%2Freferer%2F4444%2FJM-RELI-why-is-shivas-mahamrityunjaya-most-powerful-mantra-5011394-PHO.html%3Freferrer_url%3D HTTP/1.1" 204 -
192.168.1.215 - - [14/Dec/2015:20:26:36 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews-hf%2Freferer%2F4444%2FENT-BOW-captured-salman-khan-and-amitabh-bachchan-got-candid-like-never-before-5194623-PHO.html%3Fpg%3D2 HTTP/1.1" 204 -
192.168.1.215 - - [14/Dec/2015:20:26:38 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews-fbo%2Freferer%2F4444%2FENT-TV-birthjday-girl-juhi-parmar-adorable-family-moments-justify-her-sabbatical-from-a-5194764-PHO.html%3Fpg%3D15 HTTP/1.1" 204 -
192.168.1.215 - - [14/Dec/2015:20:26:39 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews-fbo%2Freferer%2F4444%2FENT-TV-daya-jethalal-babita-you-will-be-shocked-to-know-education-qualifications-of-taa-5074996-PHO.html%3Fpg%3D5 HTTP/1.1" 204 -
192.168.1.215 - - [14/Dec/2015:20:26:40 +0530] "POST /mod_pagespeed_beacon?url=http%3A%2F%2Fmdaily.bhaskar.com%2Fnews-fbo%2Freferer%2F4444%2FNAT-TOP-check-out-how-adult-films-are-shot-5122932-PHO.html%3Freferrer_url%3Dhttp%253A%252F%252Fm.facebook.com HTTP/1.1" 204 

Jeff Kaufman

unread,
Dec 14, 2015, 10:04:08 AM12/14/15
to mod-pagespeed-discuss

Bhagwat Adhikari

unread,
Dec 14, 2015, 10:10:49 AM12/14/15
to mod-pagesp...@googlegroups.com
It's hosted on Akamai CDN

I have raised a query with Akamai for same & found that the top HIT URL was 
origin-mdaily.bhaskar.com/mod_pagespeed_beacon

By default akamai won't cache the request with "POST"  & that's why I want to disable POST /mod_pagespeed_beacon from my logs.

Jeff Kaufman

unread,
Dec 14, 2015, 10:20:27 AM12/14/15
to mod-pagespeed-discuss
Akamai is caching your whole html pages?

You're going to need to clear their cache before the server changes
you made will take effect.

Also, in general PageSpeed is not designed to work behind an html
cache, and you may run into other problems unless you're very careful
about turning off features that won't work in that situation.


On Mon, Dec 14, 2015 at 10:10 AM, Bhagwat Adhikari
> https://groups.google.com/d/msgid/mod-pagespeed-discuss/CA%2BE6oSF0b%2BwU5HHrHC0%2BNzf3OFT4H%2BV5iCh_JwKnqOSPruSOMw%40mail.gmail.com.

Bhagwat Adhikari

unread,
Dec 14, 2015, 10:30:26 AM12/14/15
to mod-pagesp...@googlegroups.com
HI Jeff

Yes, We have set cache of HTML pages in Akamai which cleared on regular intervals as per TTL
 
What are your suggestions in that case? Is there any specific modules which need to be enabled if I am behind a CDN?

Please help


Bhagwat Adhikari

unread,
Dec 15, 2015, 4:23:42 AM12/15/15
to mod-pagespeed-discuss
HI Jeff / Team

Also, in general PageSpeed is not designed to work behind an html
cache, and you may run into other problems unless you're very careful
about turning off features that won't work in that situation.

What are your suggestions in that case? Is there any specific modules which I need to be enable if I am behind a CDN?


On Monday, December 14, 2015 at 9:00:26 PM UTC+5:30, Bhagwat Adhikari wrote:
HI Jeff

Yes, We have set cache of HTML pages in Akamai which cleared on regular intervals as per TTL
 
What are your suggestions in that case? Is there any specific modules which need to be enabled if I am behind a CDN?

Please help


>> >> >> >> > To view this discussion on the web visit
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/eef02c5b-dff7-49d3-ae0a-b12c413b5d8f%40googlegroups.com.
>> >> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >> >
>> >> >> > --
>> >> >> > 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

>> >> >> > To view this discussion on the web visit
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/8356bcb8-dd98-495c-8a8a-84003e299f97%40googlegroups.com.
>> >> >> >
>> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >>
>> >> >> --
>> >> >> You received this message because you are subscribed to a topic in
>> >> >> the
>> >> >> Google Groups "mod-pagespeed-discuss" group.
>> >> >> To unsubscribe from this topic, visit
>> >> >>
>> >> >>
>> >> >> https://groups.google.com/d/topic/mod-pagespeed-discuss/1uQGGjaua5c/unsubscribe.
>> >> >> To unsubscribe from this group and all its topics, send an email to

>> >> >> To view this discussion on the web visit
>> >> >>
>> >> >>
>> >> >> https://groups.google.com/d/msgid/mod-pagespeed-discuss/CAMJ6YUvx04tP_sobODXZEviQvUzag6cDZgdezPT_2BYFgjCgaQ%40mail.gmail.com.
>> >> >> For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> >
>> >> > --
>> >> > 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

>> >> > To view this discussion on the web visit
>> >> >
>> >> >
>> >> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/CA%2BE6oSEbHFXWmN2_vxm2-0B%3DO6SL_tHFM%2B2KvtXzMnezUb9nhA%40mail.gmail.com.
>> >> >
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >>
>> >> --
>> >> You received this message because you are subscribed to a topic in the
>> >> Google Groups "mod-pagespeed-discuss" group.
>> >> To unsubscribe from this topic, visit
>> >>
>> >> https://groups.google.com/d/topic/mod-pagespeed-discuss/1uQGGjaua5c/unsubscribe.
>> >> To unsubscribe from this group and all its topics, send an email to

>> >> To view this discussion on the web visit
>> >>
>> >> https://groups.google.com/d/msgid/mod-pagespeed-discuss/CAMJ6YUt2nKtU3sCwp4_aPUqyoar%2BMXwRyJJbtMMQktOY5e%3DMWQ%40mail.gmail.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> > --
>> > 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

>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/CA%2BE6oSFDHOr4iq%2BjRztMj4-owC9FBVb-jMWWaVp76%2B%2BRuW92rA%40mail.gmail.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "mod-pagespeed-discuss" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/mod-pagespeed-discuss/1uQGGjaua5c/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to

>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/CAMJ6YUsHccXiGEbwwaXswqL8s0Akn%2BWkJCp7xDC3gjsC3wi7gQ%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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

> To view this discussion on the web visit
>
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mod-pagespeed-discuss/1uQGGjaua5c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.

krishna pandey

unread,
Dec 17, 2015, 10:53:34 AM12/17/15
to mod-pagespeed-discuss
HI Jeff / Team,

Can you please help us on this
...

Joshua Marantz

unread,
Dec 17, 2015, 10:57:51 AM12/17/15
to mod-pagespeed-discuss
Take a look at this page: https://developers.google.com/speed/pagespeed/module/downstream-caching

It's a good place to get started.

Thanks,
-Josh

HI Jeff / Team,

>> >> >> >> > email to mod-pagespeed-di...@googlegroups.com.

>> >> >> >> > To view this discussion on the web visit
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/eef02c5b-dff7-49d3-ae0a-b12c413b5d8f%40googlegroups.com.
>> >> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >> >
>> >> >> > --
>> >> >> > 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

>> >> >> > To view this discussion on the web visit
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/8356bcb8-dd98-495c-8a8a-84003e299f97%40googlegroups.com.
>> >> >> >
>> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >>
>> >> >> --
>> >> >> You received this message because you are subscribed to a topic in
>> >> >> the
>> >> >> Google Groups "mod-pagespeed-discuss" group.
>> >> >> To unsubscribe from this topic, visit
>> >> >>
>> >> >>
>> >> >> https://groups.google.com/d/topic/mod-pagespeed-discuss/1uQGGjaua5c/unsubscribe.
>> >> >> To unsubscribe from this group and all its topics, send an email to

>> >> >> To view this discussion on the web visit
>> >> >>
>> >> >>
>> >> >> https://groups.google.com/d/msgid/mod-pagespeed-discuss/CAMJ6YUvx04tP_sobODXZEviQvUzag6cDZgdezPT_2BYFgjCgaQ%40mail.gmail.com.
>> >> >> For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> >
>> >> > --
>> >> > 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

>> >> > To view this discussion on the web visit
>> >> >
>> >> >
>> >> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/CA%2BE6oSEbHFXWmN2_vxm2-0B%3DO6SL_tHFM%2B2KvtXzMnezUb9nhA%40mail.gmail.com.
>> >> >
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >>
>> >> --
>> >> You received this message because you are subscribed to a topic in the
>> >> Google Groups "mod-pagespeed-discuss" group.
>> >> To unsubscribe from this topic, visit
>> >>
>> >> https://groups.google.com/d/topic/mod-pagespeed-discuss/1uQGGjaua5c/unsubscribe.
>> >> To unsubscribe from this group and all its topics, send an email to

>> >> To view this discussion on the web visit
>> >>
>> >> https://groups.google.com/d/msgid/mod-pagespeed-discuss/CAMJ6YUt2nKtU3sCwp4_aPUqyoar%2BMXwRyJJbtMMQktOY5e%3DMWQ%40mail.gmail.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> > --
>> > 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

>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/CA%2BE6oSFDHOr4iq%2BjRztMj4-owC9FBVb-jMWWaVp76%2B%2BRuW92rA%40mail.gmail.com.
>> >
>> > For more options, visit
...

--
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/9e4c85f5-0332-448b-b592-f84a0e16cf09%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages