apache / incubator-pagespeed-mod

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

Apache 2.4 and 1.9.32.13-stable #1273

Open salvoaranzulla opened 8 years ago

salvoaranzulla commented 8 years ago

Hi,

I have seen a strange behaviour from Apache 2.4 and mod_pagespeed 1.9.32.13-stable.

Many times CSS is not rewritten and I see this error:

[Mon, 29 Feb 2016 16:35:48 GMT] [Info] [17746] HTTPCache key=http://www.aranzulla.it/web/themes/sa2014/style.css fragment=aranzulla.it: remembering not-cacheable status for 233 seconds. [Mon, 29 Feb 2016 16:35:48 GMT] [Info] [17746] HTTPCache key=http://www.aranzulla.it/web/themes/sa2014/style.css fragment=aranzulla.it: remembering not-cacheable status for 233 seconds. [Mon, 29 Feb 2016 16:35:48 GMT] [Info] [17746] HTTPCache key=http://www.aranzulla.it/web/themes/sa2014/style.css fragment=aranzulla.it: remembering not-cacheable status for 233 seconds. [Mon, 29 Feb 2016 16:35:48 GMT] [Info] [17746] HTTPCache key=http://www.aranzulla.it/web/themes/sa2014/style.css fragment=aranzulla.it: remembering not-cacheable status for 233 seconds.

This problem happens also with images:

[Mon, 29 Feb 2016 18:33:26 GMT] [Info] [24859] HTTPCache key=http://www.aranzulla.it/wp-content/contenuti/2014/03/Infostrada-100x75.jpg fragment=aranzulla.it: remembering not-found status for 299 seconds.

Salvatore

oschaaf commented 8 years ago

The image http://www.aranzulla.it/wp-content/contenuti/2014/03/Infostrada-100x75.jpg does not seem to exist.

The messages about http://www.aranzulla.it/web/themes/sa2014/style.css not being cachable seem strange. Do you have multiple servers running? If so, do they all respond with the same Expiry and Cache-Control headers for this file?

salvoaranzulla commented 8 years ago

The image http://www.aranzulla.it/wp-content/contenuti/2014/03/Infostrada-100x75.jpg does not seem to exist.

You are right. We are fixing it.

Do you have multiple servers running?

yes

If so, do they all respond with the same Expiry and Cache-Control headers for this file?

yes. now it seems style.css is rewritten.

Salvatore

salvoaranzulla commented 8 years ago

Hi,

I'm sorry. I have checked few minutes ago and style.css is not rewritten:

screenshot 2016-03-03 16 17 06

:-((

Salvatore

crowell commented 8 years ago

style.css is on www., and the rewritten resources are on a., do you have different configs for the www. and a. domains?

On Thu, Mar 3, 2016 at 10:18 AM, salvoaranzulla notifications@github.com wrote:

Hi,

I'm sorry. I have checked few minutes ago and style.css is not rewritten:

[image: screenshot 2016-03-03 16 17 06] https://cloud.githubusercontent.com/assets/5984607/13498734/790c4020-e15b-11e5-8a92-840a046b66f6.png

:-((

Salvatore

— Reply to this email directly or view it on GitHub https://github.com/pagespeed/mod_pagespeed/issues/1273#issuecomment-191811354 .

Jeff Crowell https://github.com/crowell

salvoaranzulla commented 8 years ago

Hi,

We have same configuration and we use the same server.

Sometimes styles.css is rewritten, sometimes style.css is not rewritten.

I see this error:

[Thu, 03 Mar 2016 15:25:05 GMT] [Info] [7938] HTTPCache key=http://www.aranzulla.it/web/themes/sa2014/style.css fragment=aranzulla.it: remembering not-cacheable status for 5 seconds.

Salvatore

crowell commented 8 years ago

if i add ?PageSpeedFilters=+debug to the url, i can see that sometimes "style.css" gets inlined properly, and sometimes it fails to be rewritten. Does style.css reference images which change frequently?

<link href="http://www.aranzulla.it/web/themes/sa2014/style.css <view-source:http://www.aranzulla.it/web/themes/sa2014/style.css>" rel="stylesheet">

On Thu, Mar 3, 2016 at 10:25 AM, salvoaranzulla notifications@github.com wrote:

Hi,

We have same configuration and we use the same server.

Sometimes styles.css is rewritten, sometimes style.css is not rewritten.

I see this error:

[Thu, 03 Mar 2016 15:25:05 GMT] [Info] [7938] HTTPCache key= http://www.aranzulla.it/web/themes/sa2014/style.css fragment=aranzulla.it: remembering not-cacheable status for 5 seconds.

Salvatore

— Reply to this email directly or view it on GitHub https://github.com/pagespeed/mod_pagespeed/issues/1273#issuecomment-191813790 .

Jeff Crowell https://github.com/crowell

salvoaranzulla commented 8 years ago

Hi,

Expected behaviour is style.css inlined in our page.

Does style.css reference images which change frequently?

No, images are not changed frequently and style.css is not edited frequently.

This is my pagesped configuration, if it can help you:

``` ModPagespeed On ModPagespeedInheritVHostConfig on ModPagespeedMemcachedServers "10.50.203.2:11211,10.50.203.3:11211,10.50.203.4:11211,10.50.203.5:11211" ModPagespeedFileCachePath "/var/cache/pagespeed/" AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html ModPagespeedDomain www.aranzulla.it ModPagespeedShardDomain www.aranzulla.it a.rnzll.it,s.rnzll.it ModPagespeedDisallow "*/memcached_admin/*" ModPagespeedDisallow "*/common/NETWORK/LIBERO/themes/default/img/*" ModPagespeedDisallow "*/android-chrome-*.png" ModPagespeedDisallow "*/apple-touch-icon-*.png" ModPagespeedDisallow "*/apple-touch-icon.png" ModPagespeedDisallow "*/mstile-*.png" ModPagespeedDisallow "*/favicon-*.png" ModPagespeedDisallow "*/favicon.ico" ModPagespeedDisallow "*/browserconfig.xml" ModPagespeedDisallow "*/manifest.json" ModPagespeedEnableFilters insert_dns_prefetch ModPagespeedEnableFilters collapse_whitespace ModPagespeedEnableCachePurge on ModPagespeedCssInlineMaxBytes 55000 ModPagespeedJsInlineMaxBytes 55000 ModPagespeedCssImageInlineMaxBytes 5500 ModPagespeedMessageBufferSize 100000 ```

Salvatore

crowell commented 8 years ago

i can't seem to reproduce on your site any more.

Were you experiencing high traffic volume at the time, or were one or more of your memcached servers down?

On Thu, Mar 3, 2016 at 11:44 AM, salvoaranzulla notifications@github.com wrote:

Hi,

Expected behaviour is style.css inlined in our page.

Does style.css reference images which change frequently?

No, images are not changed frequently and style.css is not edited frequently.

This is my pagesped configuration, if it can help you:

ModPagespeed On ModPagespeedInheritVHostConfig on ModPagespeedMemcachedServers "10.50.203.2:11211,10.50.203.3:11211,10.50.203.4:11211,10.50.203.5:11211" ModPagespeedFileCachePath "/var/cache/pagespeed/"

AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html

ModPagespeedDomain www.aranzulla.it
ModPagespeedShardDomain www.aranzulla.it a.rnzll.it,s.rnzll.it

ModPagespeedDisallow "_/memcachedadmin/" ModPagespeedDisallow "/common/NETWORK/LIBERO/themes/default/img/" ModPagespeedDisallow "/android-chrome-.png" ModPagespeedDisallow "/apple-touch-icon-.png" ModPagespeedDisallow "/apple-touch-icon.png" ModPagespeedDisallow "/mstile-.png" ModPagespeedDisallow "/favicon-.png" ModPagespeedDisallow "/favicon.ico" ModPagespeedDisallow "/browserconfig.xml" ModPagespeedDisallow "/manifest.json"

ModPagespeedEnableFilters insert_dns_prefetch
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableCachePurge on
ModPagespeedCssInlineMaxBytes 55000
ModPagespeedJsInlineMaxBytes 55000

ModPagespeedCssImageInlineMaxBytes 5500 ModPagespeedMessageBufferSize 100000

Salvatore

— Reply to this email directly or view it on GitHub https://github.com/pagespeed/mod_pagespeed/issues/1273#issuecomment-191847333 .

Jeff Crowell https://github.com/crowell

salvoaranzulla commented 8 years ago

Hi,

i can't seem to reproduce on your site any more.

Yes, now it seems style.css is rewritten and inlined correctly. Sometimes is rewritten, sometimes is not rewritten. I can't find a pattern of this strange behaviour. The only error I see is:

[Thu, 03 Mar 2016 15:25:05 GMT] [Info] [7938] HTTPCache key=http://www.aranzulla.it/web/themes/sa2014/style.css fragment=aranzulla.it: remembering not-cacheable status for 5 seconds.

Were you experiencing high traffic volume at the time, or were one or more of your memcached servers down?

We have 400.000 average visitors by day. We don't have any problems with memcached:

screenshot 2016-03-03 20 55 34