Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE7 not Caching CSS Image over SSL

I'm using the WebDevHelper toolbar for Internet Explorer to troubleshoot HTTP requests/roundtrips on my SSL site and noticed that IE re-downloads my CSS :hover images every time they are triggered. This causes a huge amount of roundtrips.

How can I prevent this from happening?

Edit: All static content is served with cache-control: public, so images, javascript etc. are cached in Firefox and Chrome. This problem is IE specific.

like image 312
Alex Avatar asked Oct 15 '22 13:10

Alex


1 Answers

Serve static content via http, sure, but don't do separate images for :hover states. Proper css image sprites should be used. It's just good practice all around, via https or http. There are tons of resources available for creating sprites. Supposedly SpriteMe, [ http://spriteme.org/ ] is an attempt to automate css image sprite creation.

like image 79
jasonevers Avatar answered Oct 18 '22 14:10

jasonevers