chrisbespoke opened a new issue #1995:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/1995


   Hi there,
   
   I'm having an issue where websites running Apache mod_pagespeed occasionally 
break, so requested pagespeed assets return a 404. In the last 2 years, this 
happened once in a while - a couple of times per year - but this week it seems 
to happen every day.
   
   ### CONFIGURATION:
   - LAMP server with cPanel, been in service a number of years. No recent 
significant changes or updates
   - Running mod_pagespeed 1.13.35.2-0, has been in place a number of years
   - "Vanilla" configuration, pretty much as it came out of the box
   - Running approx 80 websites, 20-40 using with pagespeed
   
   ### SYMPTOMS:
   - User reports website is "broken"
   - I clear pagespeed cache, problem goes away
   - I can reload the pagespeed optimised page numerous times, but the problem 
is gone
   - The problem randomly comes back later
   
   ### DEBUG INFO:
   When looking at a broken page:
   
   1. Using Chrome dev tools, I can see some URLs 404, e.g.
   
`https://www.somewebsite.com/default/dist/assets/js/vendor/foundation.min.js,q1573461474+modernizr.js,q1573461475+bowser.min.js,q1573461474+browser-detect.js,q1573461474+jquery.matchHeight-min.js,q1573461474+priority-nav.min.js,q1573461475+slick.min.js,q1573461475+jquery.sticky-kit.min.js,q1573461474.pagespeed.jc.XFH1glDaQL.js
   
https://www.somewebsite.com/default/dist/assets/js/vendor/jquery.magnific-popup.min.js,q1573461474+jquery.form.min.js,q1573461474.pagespeed.jc.LvL0sHBy9W.js
   
https://www.somewebsite.com/default/dist/assets/js/vendor/foundation.min.js,q1573461474+modernizr.js,q1573461475+bowser.min.js,q1573461474+browser-detect.js,q1573461474+jquery.matchHeight-min.js,q1573461474+priority-nav.min.js,q1573461475+slick.min.js,q1573461475+jquery.sticky-kit.min.js,q1573461474.pagespeed.jc.XFH1glDaQL.js
   
https://www.somewebsite.com/default/dist/assets/js/vendor/jquery.magnific-popup.min.js,q1573461474+jquery.form.min.js,q1573461474.pagespeed.jc.LvL0sHBy9W.js`
   
   2. In the pagespeed admin I can see corresponding errors:
   
   `[Fri, 05 Jun 2020 08:56:09 GMT] [Warning] [21143] Fetch failed for 
https://www.somewebsite.com/default/dist/assets/js/vendor/jquery.magnific-popup.min.js,q1573461474+jquery.form.min.js,q1573461474.pagespeed.jc.LvL0sHBy9W.js,
 status=404
   [Fri, 05 Jun 2020 08:56:09 GMT] [Warning] [21143] 
https://www.somewebsite.com/default/dist/assets/js/vendor/jquery.magnific-popup.min.js,q1573461474+jquery.form.min.js,q1573461474.pagespeed.jc.LvL0sHBy9W.js
 resource_404_count: not found (404)`
   
   3. If I turn on debug via the URL, there are these kind of debug comments:
   https://www.somewebsite.com/?PageSpeed=on&PageSpeedFilters=+debug 
   
   `<script 
src="https://www.somewebsite.com/default/dist/assets/js/vendor/jquery.magnific-popup.min.js?1573461474";></script>`
   `<!--deadline_exceeded for filter CacheExtender-->`
   `<!--4xx status code, preventing rewriting of 
https://www.somewebsite.com/default/dist/assets/js/vendor/jquery.magnific-popup.min.js?1573461474-->`
   `<!--4xx status code, preventing rewriting of 
https://www.somewebsite.com/default/dist/assets/js/vendor/jquery.magnific-popup.min.js?1573461474-->`
   
   4. But if I go directly to the original assets, there's no 404:
   
   
`https://www.somewebsite.com/default/dist/assets/js/vendor/jquery.magnific-popup.min.js
   
https://www.somewebsite.com/default/dist/assets/js/vendor/jquery.magnific-popup.min.js?1573461474`
   
   5. If it helps, this is the debug output at the bottom:
   
   `<!--
   #Flush after     1690us
   #Parse duration  1673us
   #Render duration 22519us
   #Idle duration   17us
   --></html><!--
   #Flush after     37079us
   #Parse duration  4us
   #Render duration 10222us
   #Idle duration   12866us
   --><!--
   mod_pagespeed on
   Filters:
   ah   Add Head
   cw   Collapse Whitespace
   cc   Combine Css
   jc   Combine Javascript
   gp   Convert Gif to Png
   jp   Convert Jpeg to Progressive
   jw   Convert Jpeg To Webp
   mc   Convert Meta Tags
   pj   Convert Png to Jpeg
   ws   When converting images to WebP, prefer lossless conversions
   db   Debug
   ec   Cache Extend Css
   ei   Cache Extend Images
   es   Cache Extend Scripts
   fc   Fallback Rewrite Css 
   if   Flatten CSS Imports
   hw   Flushes html
   ci   Inline Css
   ii   Inline Images
   il   Inline @import to Link
   ji   Inline Javascript
   js   Jpeg Subsampling
   pr   Prioritize Critical Css
   rj   Recompress Jpeg
   rp   Recompress Png
   rw   Recompress Webp
   ri   Resize Images
   cf   Rewrite Css
   jm   Rewrite External Javascript
   jj   Rewrite Inline Javascript
   cu   Rewrite Style Attributes With Url
   cp   Strip Image Color Profiles
   md   Strip Image Meta Data`
   
   `Options:
   EnableRewriting (e) 1
   FileCacheInodeLimit (afcl) 500000
   HttpCacheCompressionLevel (hccl) 0
   MaxCombinedJsBytes (xcj) 368640
   RewriteLevel (l) Core Filters
   RunExperiment (fur) False
   StatisticsLogging (asle) True`
   
   `#NumFlushes            1
   #EndDocument after     37079us
   #Total Parse duration  1677us
   #Total Render duration 32741us
   #Total Idle duration   12883us
   No critical images detected.
   The following filters were disabled for this request:
        CriticalSelectorFilter: No critical selector info in cache
        SupportNoscript
   -->`
   
   And pagespeed.conf is attached too.
   
[pagespeed.conf.txt](https://github.com/apache/incubator-pagespeed-mod/files/4735278/pagespeed.conf.txt)
   
   I'm stumped on this, as clearing the cache fixes the problem.
   
   Has anyone come across this before?
   


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to