Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Apache 2.4 and 1.9.32.13-stable #1273

Open
salvoaranzulla opened this issue Feb 29, 2016 · 9 comments
Open

Apache 2.4 and 1.9.32.13-stable #1273

salvoaranzulla opened this issue Feb 29, 2016 · 9 comments

Comments

@salvoaranzulla
Copy link

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
Copy link
Member

oschaaf commented Mar 3, 2016

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
Copy link
Author

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
Copy link
Author

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
Copy link
Contributor

crowell commented Mar 3, 2016

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
#1273 (comment)
.

Jeff Crowell
https://github.com/crowell

@salvoaranzulla
Copy link
Author

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
Copy link
Contributor

crowell commented Mar 3, 2016

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?

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
#1273 (comment)
.

Jeff Crowell
https://github.com/crowell

@salvoaranzulla
Copy link
Author

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
Copy link
Contributor

crowell commented Mar 3, 2016

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 "/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


Reply to this email directly or view it on GitHub
#1273 (comment)
.

Jeff Crowell
https://github.com/crowell

@salvoaranzulla
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants