Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [Performance] How to cache images in certian directory?
#1
Not Solved
I have seperated image for every forum, and loading time is increased because of that.
All my images (icons) for those forums are stored in directory called "forum_icons". 
How can I cache that directory via cloudflare (or any other possible and better way) for like 1 month so my users don't need to wait over and over for images to load?
PS: I am already using cloudflare.
iAndrew & NickGHQ - Respect!!
Reply
#2
Not Solved
Hi,

you'll have to create a "rule" to let Cloudflare cache all the images in your "forum_icons" folder.

Check their how-to:
https://support.cloudflare.com/hc/en-us/articles/202775670-Customizing-Cloudflare-s-cache
I don't answer questions about localhost forums or forums without URL, I'm not a seer.  Cool
Reply
#3
Not Solved
For anyone looking to do the same thing on their own server without CloudFlare, there's a pretty good guide here on doing it through your .htaccess file.
WebDevZone 🛠 - A new, friendly web development community
Reply
#4
Not Solved
you can use mod_pagespeed it's a webserver level cache with support for memcached resize photos and lots more

nginx with mod_pagespeed : https://github.com/karljohns0n/nginx-more
mod_pagespeed for apache : https://www.modpagespeed.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)