Solved: 5 Years ago Image caching
#1
Solved: 5 Years ago
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
Reply
#2
Solved: 5 Years ago
Have you checked your browser console error logs?
-Ben

Please do not PM me for support. I am looking to be hired for paid services.

You can view my paid services here.
Reply
#3
Solved: 5 Years ago
I'm caching attachments with .htaccess

<IfModule mod_headers.c>
    <FilesMatch "^(attachment)\.php$">
        Header set Cache-Control "max-age=2628000, public"
    </FilesMatch>
</IfModule>
Reply
#4
Solved: 5 Years ago
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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)