Local image proxy/cache for webserver?

Discussion in 'ISPConfig 3 Priority Support' started by rob_morin, Apr 6, 2017.

  1. rob_morin

    rob_morin Member HowtoForge Supporter

    Hello all.. i have noticed that many of our clients use remote URL for images on other sites, for various reasons. I was wondering is there a way to cache these images so that they are fetched locally rather than remotely, this would speed up their sites and use less connections over all on the server.

    Like is it as simple as installing squid or something like that?

    Thanks!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    If you use Nginx, you can add some global config like this:

    open_file_cache max=5000 inactive=20s;
    open_file_cache_valid 5m;
    open_file_cache_min_uses 2;
    open_file_cache_errors on;

    to enable file caching. Nginx is really fast when it comes to static files anyway, but with this option, it is even faster. On Nginx servers, I won't put squit in front.
     

Share This Page