MyBB Community Forums

Full Version: Image caching
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm seeing lots of broken image icons when I go to a post with thumbnails (20) also on the portal (20). Is there a time out for loading option or a caching option I should be using?

I have my VB production site on the same host as my test site with MyBB 1822 and the VB site has no issues like this. I have 265,000 images so its kind of important to deliver thumbs without errors.

Yes I do have caching on but zlib.output_compression off.

A bit more info. The VB site is running php 5.6 and the MyBB was 7.0 I've just updated to 7.3
Have you checked your browser console error logs?
I'm caching attachments with .htaccess

<IfModule mod_headers.c>
    <FilesMatch "^(attachment)\.php$">
        Header set Cache-Control "max-age=2628000, public"
    </FilesMatch>
</IfModule>
Yes and each broken thumbnail is a 500 server error.

(2020-01-26, 06:29 PM)Ben Wrote: [ -> ]Have you checked your browser console error logs?

(2020-01-26, 06:45 PM)SvePu Wrote: [ -> ]I'm caching attachments with .htaccess

<IfModule mod_headers.c>
    <FilesMatch "^(attachment)\.php$">
        Header set Cache-Control "max-age=2628000, public"
    </FilesMatch>
</IfModule>


Yes this works second time I hit the page. The images load instantly that were cached