Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Anyone Know how to Cache External Images?

Anyone Know how to Cache External Images? 1 year 2 weeks ago #45350

  • dawson
  • dawson's Avatar
  • OFFLINE
  • OSTudent
  • Posts: 35
  • Karma: 0
I've been on the speed optimisation for a while now.

One of the suggestions is to parallelize downloads across multiple domains.

Basically I have loaded all my category images on virtuemart from a different domain taht I use to host all my images and static files.

The problem that I have now is that I cannot set a expiration time on these images.

The below is the result from pingdom

The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:

my URL is www.promotional-products.org/
I have been working with Joomla and Virtuemart for the last 4 Years. My Website is built using Joomla, Virtuemart, WordPress and lots of Custom Components.
Please become a member of OSTraining to reply to this post.

Anyone Know how to Cache External Images? 1 year 2 weeks ago #45362

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3954
  • Thank you received: 134
  • Karma: 9
Hi David, and welcome to OSTraining!

Honestly I didn't see any extension that could do this, but a professional here might see something I missed completely, however, I did run across a PHP script to create expiration times on images to cache your images in a Virtuemart extension.

You can find the following code here:
stackoverflow.com/questions/5316829/how-...cache-image-from-php

Let me know if this is something you were looking for. :-)
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.