You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2019/05/09 19:09:34 UTC

[GitHub] [incubator-pagespeed-mod] conandrum edited a comment on issue #1882: Pagespeed rating drops after a couple of hours? Why?

conandrum edited a comment on issue #1882: Pagespeed rating drops after a couple of hours? Why?
URL: https://github.com/apache/incubator-pagespeed-mod/issues/1882#issuecomment-491028928
 
 
   Thanks for replying: I have read that page when setting things up. 
   My test site is http://134.209.247.233/ (no domain, no SSL, no traffic)
   This is why I chose to my setup as follows:
   ```
       ModPagespeed on
       AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
       ModPagespeedFileCachePath            "/var/cache/mod_pagespeed/"
       ModPagespeedLogDir "/var/log/pagespeed"
       ModPagespeedSslCertDirectory "/etc/ssl/certs"
       ModPagespeedStatisticsLogging on
       ModPagespeedEnableCachePurge on
       ModPagespeedPurgeMethod PURGE
       ModPagespeedFileCacheSizeKb 2048000
       ModPagespeedFileCacheCleanIntervalMs 3600000
       ModPagespeedFileCacheInodeLimit 500000
       ModPagespeedDefaultSharedMemoryCacheKB 50000
       ModPagespeedImageMaxRewritesAtOnce -1
   
      ModPagespeedLoadFromFileCacheTtlMs 31536000000
       ModPagespeedLoadFromFileMatch "^https?://134.209.247.233/" "/home/hallonpower/public_html/"
       ModPagespeedLoadFromFileRuleMatch disallow .*
       ModPagespeedLoadFromFileRuleMatch allow \.css$
       ModPagespeedLoadFromFileRuleMatch allow \.jpe?g$
       ModPagespeedLoadFromFileRuleMatch allow \.png$
       ModPagespeedLoadFromFileRuleMatch allow \.gif$
       ModPagespeedLoadFromFileRuleMatch allow \.js$
       ModPagespeedLoadFromFileRuleMatch allow \.svg$
       ModPagespeedDisallow "*/admin/*"
   
       ModPagespeedFetchHttps enable
   
      ModPagespeedRewriteLevel CoreFilters
      ModPagespeedEnableFilters remove_comments,collapse_whitespace,elide_attributes,trim_urls
      ModPagespeedDomain http://fonts.googleapis.com
      ModPagespeedGoogleFontCssInlineMaxBytes 20000
      ModPagespeedEnableFilters inline_google_font_css
      ModPagespeedEnableFilters lazyload_images
      ModPagespeedEnableFilters responsive_images
      ModPagespeedEnableFilters responsive_images_zoom
      ModPagespeedEnableFilters insert_image_dimensions
   ```
   
   https://www.modpagespeed.com/doc/faq#varying-results states:
   There are two (relatively) common situations that may lead up to a fluctuating level of optimization in the output:
   1. 
   Low traffic (TRUE FOR THIS TEST SITE - test was without traffic for 2 hours)
   short http expiry times for image, css and javascript (increase the http expiry or set up LoadFromFile)
       ModPagespeedFileCacheCleanIntervalMs 3600000
       ModPagespeedLoadFromFileMatch "^https?://134.209.247.233/" "/home/hallonpower/public_html/"
      ModPagespeedLoadFromFileCacheTtlMs 31536000000
   
   2. High cache churn rates:
   caches are sized too small, (Size the cache to 3 to 4 times the size of the original assets)
       ModPagespeedFileCacheSizeKb 2048000
       ModPagespeedFileCacheInodeLimit 500000
       ModPagespeedDefaultSharedMemoryCacheKB 50000
   
   3. If the above did not help, the admin pages offer various tools that may assist in diagnosing what happens.
   
   Question:
   1. ModPagespeedFileCacheCleanIntervalMs 3600000 = 1 hour
   If I increase this to 86400000 (24 hours) this should stop early expiry?
   
   2. ModPagespeedDefaultSharedMemoryCacheKB 50000
   How do I know if this is enough or not?
   
   3. Anything else you see that I may be doing wrong? Been playing with pagespeed for only a week.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services