<p>I am using Tomcat as a server and Internet Explorer 6 as a browser. A web page in our app has about 75 images. We are using SSL. It seems to be very slow at loading all the content. How can I configure Tomcat so that IE caches the images?</p>

[{'answer_id': 72413, 'author': 'Gabor', 'author_id': 10485, 'author_profile': 'https://Stackoverflow.com/users/10485', 'pm_score': -1, 'selected': False, 'text': '<p>Content served over a HTTPS connection <strong>never gets cached</strong> in the browser. You cannot do much about it. </p>\n\n<p>Usually, images in your web site are not very sensitive and are served over HTTP for this very reason.</p>\n'}, {'answer_id': 72547, 'author': 'Steve g', 'author_id': 12092, 'author_profile': 'https://Stackoverflow.com/users/12092', 'pm_score': 2, 'selected': False, 'text': '<p>75 images sounds like a lot.  If it is a lot of small images, there are ways of bundling many images as one, you might see if you can find a library that does that.  Also you can probably force the images to be cached in something like <a href="http://gears.google.com" rel="nofollow noreferrer">google gears</a>.</p>\n'}, {'answer_id': 74226, 'author': 'junkforce', 'author_id': 2153, 'author_profile': 'https://Stackoverflow.com/users/2153', 'pm_score': -1, 'selected': False, 'text': "<p>The first answer is correct that nothing is cached when using HTTPS. However, when you build your web page, you may consider referencing the images by their individual URL's. This way you can specify the images as originating from an HTTP source, and they'll(likely) be cache'd by the browser.</p>\n"}, {'answer_id': 83182, 'author': 'Dave Cheney', 'author_id': 6449, 'author_profile': 'https://Stackoverflow.com/users/6449', 'pm_score': 4, 'selected': True, 'text': '<p>If you are serving a page over https then you\'ll need to serve all the included static or dynamic resources over https (either from the same domain, or another domain, also over https) to avoid a security warning in the browser.</p>\n\n<p>Content delivered over a secure channel will not be written to disk by default by most browsers and so lives in the browsers memory cache, which is much smaller than the on disk cache. This cache also disappears when the application quits.</p>\n\n<p>Having said all of that there are things you can do to improve the cachability for SSL assets inside a single browser setting. For starters, ensure that all you assets have reasonable Expires and Cache-Control headers. If tomcat is sitting behind apache then use mod_expires to add them. This will avoid the browser having to check if the image has changed between pages</p>\n\n<pre><code>&lt;Location /images&gt;\n   FileEtag none\n   ExpiresActive on\n   ExpiresDefault "access plus 1 month"\n&lt;/Location&gt;\n</code></pre>\n\n<p>Secondly, and this is specific to MSIE and Apache, most apache ssl configs include these lines</p>\n\n<pre><code>SetEnvIf User-Agent ".*MSIE.*" \\\n     nokeepalive ssl-unclean-shutdown \\\n     downgrade-1.0 force-response-1.0\n</code></pre>\n\n<p>Which disables keepalive for ALL MSIE agents. IMHO this is far too conservative, the last MSIE browsers to have issues using SSL were 5.x and unpatched versions of 6.0 pre SP2, both of which are very uncommon now. The following is more lenient and will not disable keepalives when using MSIE and SSL</p>\n\n<pre><code>BrowserMatch "MSIE [1-4]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0\nBrowserMatch "MSIE [5-9]" ssl-unclean-shutdown\n</code></pre>\n'}, {'answer_id': 84091, 'author': 'MarkR', 'author_id': 13724, 'author_profile': 'https://Stackoverflow.com/users/13724', 'pm_score': 3, 'selected': False, 'text': '<p>Some browsers will cache SSL content. Firefox 2.0+ does not cache SSL resources on disc by default (for increased privacy). Firefox 3+ doesn\'t cache them on disc unless the Cache-control:public header appears.</p>\n\n<p>So set the Expires: header correctly and Cache-control:public. e.g.</p>\n\n<pre><code>&lt;Files ~ "\\.(gif|jpe?g|png|ico|css|js|cab|jar|swf)$"&gt;\n        # Expire these things\n        # Three days after access time\n        ExpiresDefault  "now plus 3 days"\n        # This makes Firefox 3 cache images over SSL\n        Header set Cache-Control public\n&lt;/Files&gt;\n</code></pre>\n'}, {'answer_id': 85265, 'author': 'Philip Helger', 'author_id': 15254, 'author_profile': 'https://Stackoverflow.com/users/15254', 'pm_score': -1, 'selected': False, 'text': '<p>Maybe you can add an additional server/subdomain that provides the images without https?</p>\n'}, {'answer_id': 731198, 'author': 'scotts', 'author_id': 69079, 'author_profile': 'https://Stackoverflow.com/users/69079', 'pm_score': 2, 'selected': False, 'text': '<p>If a lot of those 75 images are icons or images that appear on every page, you can use CSS sprites to drastically reduce the number of HTTP requests and thus load the page faster:</p>\n\n<p><a href="http://www.alistapart.com/articles/sprites/" rel="nofollow noreferrer">http://www.alistapart.com/articles/sprites/</a></p>\n'}]
['https://Stackoverflow.com/questions/72358', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2959/']