ullfindsmit
asked on
HTML Cache External Images Only
In process of trying to optimize http://www.dealer24x7.com/Used/1/Inventory/ the recommendation we are getting from google's page speed insights (https://developers.google.com/speed/pagespeed/insights) is to leverage caching.
What meta tag do we need to use to specify caching images (local and external) longer (say 3 months) and caching the HTML of the page for only a week?
p.s.
The goal is to leverage public cache pools by using
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PUBLIC">
What meta tag do we need to use to specify caching images (local and external) longer (say 3 months) and caching the HTML of the page for only a week?
p.s.
The goal is to leverage public cache pools by using
<META HTTP-EQUIV="CACHE-CONTROL"
ASKER
Unfortunately some (or even a good majority) of the images come from third party servers that I have no control over
Image files don't have META tags or any other HTML in them. That would have to be done on the server. Here's a page about doing in Apache: http://www.chicagostyleseo.com/2010/04/googles-need-for-speed-use-cache-and-htaccess-to-speed-up-your-site/ I don't know how to set this up in IIS. I that in the other comment.
If they're from third party servers, there is nothing you can do about it.
If they're from third party servers, there is nothing you can do about it.
ASKER
So is there an HTML tag on the HTML page that I can use to say cache this page and its contents (local and external images) for 7 days?
No.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
While it aint pretty, it does the job
Glad You appreciate that script....
Who needs pretty, when your sneaky.
You could Save the external image to a local FOlder.
Add a Check to see if the File exists before the PHP
gets the external Image.
Regards Selvol
Who needs pretty, when your sneaky.
You could Save the external image to a local FOlder.
Add a Check to see if the File exists before the PHP
gets the external Image.
Regards Selvol
Its a server Issue or setting
If you use IIS
http://www.iis.net/learn/m
Selvol