Home All Groups Group Topic Archive Search About

Force Browser to Cache Images under SSL?

Author
5 Jul 2005 5:52 AM
WebDev01
Does anyone know if it is possible to force a browser to cache images under
SSL? (perhaps using a specific http cache header)

I tried putting all images on http but MSIE complains with a prompt about
secure and insecure items (which I presume is the default) and this would be
unacceptable for our customers.  The images have been reduced to their
absolute minimum for our quality standards but still they very painful for
our modem users (1min).  It's basically a key pad with lots of little images
(1600 bytes each average) including rollovers.   We have turned on HTTP
Compression (IIS6) which boosted the source download (there is quite a bit of
javascript) but now the most time consuming part is loading the images.

Any help greatly appreciated.

Thankyou.

Author
5 Jul 2005 10:55 AM
David Wang [Msft]
It is not possible for a server to force the browser to do anything.

Thus, the server can only refrain from marking the images as non-cacheable.
Whether the browser chooses to cache is TOTALLY up to the browser.

By default, SSL responses (non-client-cert) are cacheable on the server, and
are not marked as non-cacheable. Whether the client chooses to cache is
totally up to its configuration. Most browsers are configured to NOT save
any content sent over SSL for security reasons, so my guess is that unless
you can make the browser configuration less secure, the browser is not going
to do what you want and you can do nothing about it.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"WebDev01" <WebDe***@discussions.microsoft.com> wrote in message
news:6BC72A97-B6C8-43BB-8F13-7D3EAF00136A@microsoft.com...
Does anyone know if it is possible to force a browser to cache images under
SSL? (perhaps using a specific http cache header)

I tried putting all images on http but MSIE complains with a prompt about
secure and insecure items (which I presume is the default) and this would be
unacceptable for our customers.  The images have been reduced to their
absolute minimum for our quality standards but still they very painful for
our modem users (1min).  It's basically a key pad with lots of little images
(1600 bytes each average) including rollovers.   We have turned on HTTP
Compression (IIS6) which boosted the source download (there is quite a bit
of
javascript) but now the most time consuming part is loading the images.

Any help greatly appreciated.

Thankyou.