pagespeed on;
pagespeed FileCachePath /var/ngx_pagespeed_cache;
location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
add_header "" "";
}
location ~ "^/pagespeed_static/" { }
location ~ "^/ngx_pagespeed_beacon$" { }
pagespeed FileCacheSizeKb 102400;
pagespeed LRUCacheKbPerProcess 8192;
pagespeed LRUCacheByteLimit 16384;
pagespeed RewriteLevel CoreFilters;
pagespeed EnableFilters collapse_whitespace,remove_comments;
Above is my pagespeed config. I have 6 nginx processes running because I have 6 cores (not sure if that matters, but I'll mention it). I have plenty of memory available to use if I need to.
The problem is that when I enabled pagespeed, it starts out working fine. All resources are optimized properly, images, css, js, etc. However, after maybe 20 minutes I'll notice that some resources start to return 404 errors. Though not all resources return 404s and it seems pretty random. I enabled the statistics for a brief period of time thinking that it may help pinpoint an issue, but it was saying that I shouldn't be having any 404 errors.
Any ideas what may be causing this to happen?