apache / incubator-pagespeed-mod

Apache module for rewriting web pages to reduce latency and bandwidth.
http://modpagespeed.com
Apache License 2.0
696 stars 158 forks source link

GET Beacon 404 #1395

Open jeremy-seipelt opened 8 years ago

jeremy-seipelt commented 8 years ago

Hi, I am pretty new to Apache and tried to install mod_pagespeed on our demo server. It seems to be installed properly based on the mod_pagespeed header shown when i type curl -D- http://example.com | less X-Mod-Pagespeed: 1.11.33.3-0

I edited the the pagespeed.conf and added:
ModPagespeedEnableFilters add_instrumentation ModPagespeedEnableFilters prioritize_critical_css //the main reason i use mod_pagespeed ModPagespeedRewriteLevel PassThrough ModPagespeedInheritVHostConfig On //I use VHosts

all my confs getting inserted properly by includeOptional conf.d/*.conf

When I load my page i get a 404 error from a GET request.

GET /mod_pagespeed_beacon/?ets=load:1189&rload=3135&nav=1&dns=0&connect=28&req_start=41&ttfb=1880&dwld=22&dom_c=2640&nt=1&fp=2457&ifr=0&dpr=1&url=EMPTY HTTP/1.1 Host: EMPTY Connection: keep-alive Pragma: no-cache Cache-Control: no-cache User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_105) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Accept: image/webp,image/,_/*;q=0.8 Referer: EMPTY Accept-Encoding: gzip, deflate, sdch Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 Cookie: session-set=true; language=0

I put Empty where my normal url is.

Are there settings missing i need for mod_pagespeed proper execution ? Maybe a bug ?

Pls ask if u need further information and how i can retrieve it.

morlovich commented 8 years ago

Nothing else should be needed; works OK in my spot-check, too; any chance the /mod_pagespeed_beacon URL is under a vhost with mod_pagespeed off, or some such?

On Tue, Sep 13, 2016 at 1:13 PM, jeremy-seipelt notifications@github.com wrote:

Hi, I am pretty new to Apache and tried to install mod_pagespeed on our demo server. It seems to be installed properly based on the mod_pagespeed header shown when i type curl -D- http://example.com | less X-Mod-Pagespeed: 1.11.33.3-0

I edited the the pagespeed.conf and added:

ModPagespeedEnableFilters add_instrumentation ModPagespeedEnableFilters prioritize_critical_css //the main reason i use mod_pagespeed ModPagespeedRewriteLevel PassThrough ModPagespeedInheritVHostConfig On //I use VHosts

all my confs getting inserted properly by includeOptional conf.d/*.conf

When I load my page i get a 404 error from a GET request.

GET /mod_pagespeed_beacon/?ets=load:1189&rload=3135&nav=1& dns=0&connect=28&req_start=41&ttfb=1880&dwld=22&dom_c=2640& nt=1&fp=2457&ifr=0&dpr=1&url=EMPTY HTTP/1.1 Host: EMPTY Connection: keep-alive Pragma: no-cache Cache-Control: no-cache User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_105) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Accept: image/webp,image/,_/*;q=0.8 Referer: EMPTY Accept-Encoding: gzip, deflate, sdch Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 Cookie: session-set=true; language=0

I put Empty where my normal url is.

Are there settings missing i need for mod_pagespeed proper execution ? Maybe a bug ?

Pls ask if u need further information and how i can retrieve it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pagespeed/mod_pagespeed/issues/1395, or mute the thread https://github.com/notifications/unsubscribe-auth/ADl1RNtVK_JJcY3elXOxbcFEXyDJT2q_ks5qptm8gaJpZM4J766L .

jeremy-seipelt commented 8 years ago

mod_pagespeed is turned on in the global conf file(pagespeed.conf) and i tried also turning it on at the VHost level. If mod_pagespeed would be off it could not even show me this request right ?

jeremy-seipelt commented 8 years ago

I removed add_instrumentation and now the get req vanished. But prioritize css still wont work... Should i open a new issue ?

jmaessen commented 8 years ago

If your beacon requests are getting 404, then the beacons for critical CSS are almost certainly getting lost as well. You'll need to fix beaconing before prioritize_critical_css will work for you.

-Jan

On Wed, Sep 14, 2016 at 5:52 AM, jeremy-seipelt notifications@github.com wrote:

I removed add_instrumentation and now the get req vanished. But prioritize css still wont work... Should i open a new issue ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pagespeed/mod_pagespeed/issues/1395#issuecomment-246962651, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmZSGk2nzvjrzIrqBAxvodvorwBAhTwks5qp8PrgaJpZM4J766L .

jeremy-seipelt commented 8 years ago

Ok i try to fix beaconing but i have no clue what I did wrong or forgot. I try manually to add the filters in the URL like http://example.com/?ModPagespeed=on&ModPagespeedFilters=inline_css I tested some of them no 404 but also no difference with my webpage.

jeremy-seipelt commented 8 years ago

Could there be a problem with using modpagespeed and php + Angular ?? Our css gets created on the serverside and only avaible in a cache.

morlovich commented 8 years ago

That should work fine, too, since we'll just fetch it, but that's a totally different issue from the beacon handler. Hmm, maybe the modules are fighting for the URL somehow? Not really sure how to approach this, maybe some of my coworkers have suggestions?

jeremy-seipelt commented 8 years ago

Our head of R&D is not here right now maybe i did something wrong in the apache configs. I'll tell him to look into it but he is busy all the time so i would appreciate if the problem gets solved without him. I'll post if something changed so we can fix a possible bug or write an addition to the wiki.