incubator-pagespeed-mod
incubator-pagespeed-mod copied to clipboard
does not find images and css periodically
[ngx_pagespeed 1.14.36.1-0] #WARNING:resource_fetch.cc(197)] Fetch failed for resource url cache/catalog/import_files/82/x82fb69fe6a8911ea9d1e04d4c4ab4462_8893aa3b939011ea96d904d4c4ab4462-228x228.jpg.pagespeed.ic.YyRTkdctzh.jpg
pagespeed on; pagespeed FileCachePath /var/cache/pagespeed; pagespeed HttpCacheCompressionLevel 0; pagespeed EnableFilters insert_dns_prefetch;
pagespeed RewriteLevel OptimizeForBandwidth;
pagespeed RewriteLevel CoreFilters;
pagespeed RedisServer "localhost";
HTTPS Support
pagespeed FetchHttps enable;
PageSpeed Filters
CSS Minification
pagespeed EnableFilters combine_css,rewrite_css; pagespeed EnableFilters move_css_to_head;
JS Minification
pagespeed EnableFilters combine_javascript,rewrite_javascript; pagespeed EnableFilters move_css_above_scripts;
Images Optimization
pagespeed InPlaceResourceOptimization on; pagespeed EnableFilters lazyload_images; pagespeed EnableFilters rewrite_images; pagespeed EnableFilters convert_jpeg_to_progressive,convert_png_to_jpeg,convert_jpeg_to_webp,convert_to_webp_lossless;
Remove comments from HTML
pagespeed EnableFilters remove_comments;
Remove WHITESPACE from HTML
pagespeed EnableFilters collapse_whitespace;
предварительная загрузка данных
pagespeed EnableFilters hint_preload_subresources;
periodically, the page falls apart and does not find images or css has to overload nginx and clean the cache otherwise everything does not work.
At 1st glance, the https config need to configure certs, see it here: https://www.modpagespeed.com/doc/https_support#configuring_ssl_certificates
Have you enabled a eviction policy in redis? https://redis.io/topics/lru-cache