11

There's a website I use every day, and there are lots of large images on it (uploaded by my designers).

Every time I go to a page, the images get downloaded again, and it takes forever. How can I force Chrome to cache these images?

Once uploaded, they never change. More images are uploaded each day, but when I go to a page, ALL of the images are downloaded-- even ones Chrome has downloaded before.

I suspect I may need a Chrome extension.

4
  • 2
    Maybe you should have the web site's developer read this: code.google.com/speed/page-speed/docs/caching.html Commented Nov 27, 2011 at 18:48
  • 2
    Thanks, but since it is technically possible to customize this behavior on the client side, I'd like to do it. With a Chrome extension, for example.
    – Elliot
    Commented Nov 28, 2011 at 19:27
  • If you put chrome://cache in the Chrome address bar, you don't see them in the cache listing? It's odd that Chrome wouldn't cache them; I was wondering if it has cached copies, but for some reason thinks what it finds on the website is not the same as what it has cached and so downloads them again
    – moonpoint
    Commented Jul 18, 2015 at 1:26
  • newer, with more attempts, not limited to chrome: superuser.com/questions/1826578/…
    – gcb
    Commented Jan 25 at 17:31

2 Answers 2

1

It might be a bit overkill, but you could run a caching proxy like squid on your client computer and redirect all your browsers (maybe all 1 of them) to use the local proxy. Then in the proxy you can more easily force caching of the content you want.

You'll have to use SSL-interception w/the proxy to see individual items, since google promotes SSL-obfuscation everywhere, you won't be able to see anything unless your proxy acts as a MITM.

Since I added SSL interception to my home proxy my caching rate has gone up to as high as 30-45% of requests, though more commonly its down around 10-15% of requests 5-10% of byte-volume.

I put in special filters to force image caching on some sites to improve performance. My housemate notices it when browsing youtube and how much faster browsing is now because the thumbs are cached locally.

It might very well be overkill for your use case, but it does give you a lot of access to things that are normally closed-off to users w/https-everywhere.

1
  • This is an old answer, there's no effective way to intercept SSL traffic today without extremely complex set ups and hacks. Awesome thinking out of the box (or browser) though.
    – gcb
    Commented Jan 25 at 17:27
0

You can use Cache Manifest HTML5

http://www.html5rocks.com/en/tutorials/appcache/beginner/ http://www.w3schools.com/html/html5_app_cache.asp

1
  • 3
    Good info. But OP's question is about forcing caching by client Commented Dec 12, 2014 at 10:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .