Have some weird issue with constancy of pagespeed insights results.Checking homepage 1st time, getting 93/100 on mobile, and 93/100 on desktop.
After some time checking once again, getting 74/100 on mobile and 92/100 on desktop.
Shouting (for mobile) on Prioritize visible content and Eliminate render-blocking JavaScript and CSS in above-the-fold content.
Once accessing to website from mobile couple times - getting 93/100 again. Site does have some traffic both on mobile and both on desktop.
Here is my mod_pagespeed setup:
ModPagespeedFetchWithGzip on
SetOutputFilter DEFLATE
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
ModPagespeedFileCachePath "/var/mod_pagespeed/cache/"
ModPagespeedFileCacheSizeKb 102400
ModPagespeedFileCacheCleanIntervalMs 3600000
ModPagespeedLRUCacheKbPerProcess 1024
ModPagespeedLRUCacheByteLimit 16384
ModPagespeedEnableCachePurge off
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters inline_import_to_link
ModPagespeedEnableFilters rewrite_javascript,rewrite_css,sprite_images
ModPagespeedEnableFilters rewrite_style_attributes_with_url
ModPagespeedEnableFilters prioritize_critical_css
ModPagespeedEnableFilters inline_css
ModPagespeedEnableFilters combine_css
ModPagespeedEnableFilters defer_javascript
ModPagespeedEnableFilters inline_javascript
ModPagespeedEnableFilters move_css_to_head
ModPagespeedEnableFilters move_css_above_scripts
ModPagespeedEnableFilters extend_cache
ModPagespeedEnableFilters lazyload_images
ModPagespeedEnableFilters flatten_css_imports
ModPagespeedEnableFilters collapse_whitespace,remove_comments,add_head,remove_quotes,convert_meta_tags
ModPagespeedRespectVary on
<Directory /var/www/mod_pagespeed_example>
# Any caching headers set on HTML are ignored, and all HTML is served
# uncacheable. PageSpeed rewrites HTML files each time they are served. The
# first time mod_pagespeed sees an HTML file, it generally won't optimize it
# fully. It will optimize better after the second view. Caching defeats this
# behavior.
# Images, styles, and JavaScript are all cache-extended for
# a year by rewriting URLs to include a content hash. mod_pagespeed
# can only do this if the resources are cacheable in the first place.
# The origin caching policy, set here to 10 minutes, dictates how
# frequently mod_pagespeed must re-read the content files and recompute
# the content-hash. As long as the content doesn't actually change,
# the content-hash will remain the same, and the resources stored
# in browser caches will stay relevant.
<FilesMatch "\.(jpg|jpeg|gif|png|js|css)$">
Header set Cache-control "public, max-age=300"
</FilesMatch>
</Directory>
ModPagespeedImgInlineMaxBytes 2048
ModPagespeedCssOutlineMinBytes 3000
ModPagespeedJsOutlineMinBytes 3000
ModPagespeedLazyloadImagesAfterOnload off
ModPagespeedMaxCombinedJsBytes 300000
ModPagespeedMaxSegmentLength 2048
ModPagespeedMaxCombinedCssBytes -1
ModPagespeedJsInlineMaxBytes 20512
ModPagespeedCssInlineMaxBytes 20512
ModPagespeedMaxSegmentLength 250