I currently have a load time problem in my web application.
As I checked during friebug, my browser is not caching my images thus it request all images files everytime which slowsdown the application.
I looked up at the code and found below meta tag in all my JSP.
Any idea how can I make the browser cache only static files such as images/css/js? My app depends on AJAX to update the display so thats why I place the meta tags in most of my JSP.
Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
Those headers are for the HTML page, not for embedded images etc. Make sure that those are served with appropriate cache headers; a tool like the Firefox plugin "LiveHTTPHeaders" can help you figure out what's going on in that regard. (Personally, I quite like HttpScoop for OS X.)
Joined: Jul 09, 2007
Thanks for the reply. The problem that I am seeing is that the browser especially IE is not caching my images files/css/js files. Everytime it request for these files thereby slowing my apps. I am thinking of creating a filter for myself that will intercept all url, check for any images/css/js files then add the cache control response headers on *only* these files.
I actually still am studying if what I am thinking is possible but would like to hear your thoughts regarding these.