browser-cache

Under what conditions will the browser cache <video> files?

让人想犯罪 __ 提交于 2019-12-30 00:00:49
问题 Under what conditions will the browser cache files? Sometimes it does, sometimes it doesn't. If no one here knows, my next step will be to test the various file format, file size, and htaccess scenarios. If you don't know, can you think of any other variables that you'd recommend testing? Thanks in advance! 回答1: The following works to instruct the browser to cache the files. The last line was necessary to make the server deliver webm files with the correct header MIME type. # Expires is set

Prevent IE caching

非 Y 不嫁゛ 提交于 2019-12-29 14:32:27
问题 I am developing a Java EE web application using Struts. The problem is with Internet Explorer caching. If an user logs out he can access some pages because they are cached and no request is made. If I hit refresh it works fine. Also if an user goes to login page again it won't redirect him because that page is also cached. Two solutions come to my mind: Writing an Interceptor (servlet filter like) to add to response header no-cache etc. Or or put <meta> tags at each page. Which one should I

Prevent IE caching

不打扰是莪最后的温柔 提交于 2019-12-29 14:32:15
问题 I am developing a Java EE web application using Struts. The problem is with Internet Explorer caching. If an user logs out he can access some pages because they are cached and no request is made. If I hit refresh it works fine. Also if an user goes to login page again it won't redirect him because that page is also cached. Two solutions come to my mind: Writing an Interceptor (servlet filter like) to add to response header no-cache etc. Or or put <meta> tags at each page. Which one should I

Prevent caching of pages in Internet Explorer 8

混江龙づ霸主 提交于 2019-12-29 06:23:51
问题 On my page in IE8, I have got some text which gets changed through an admin panel. For example: if the page contains the text 'hello world', after 5 minutes the text could be different depending upon if the admin has changed it. The problem is with IE8 which caches the page and shows the same text again. If we clear the cache and refresh, the text is updated. I am using <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> tag to make refrain the browser from caching. I have seen that if I

Can I force .htaccess to refresh?

折月煮酒 提交于 2019-12-29 05:44:09
问题 We are moving a site from one CMS to another. The .htaccess file has been changed and it needs to be refreshed for the new site to work right. From what I understand the .htaccess file will only be refreshed if the browser cache is cleared? It is fine for those creating the site to clear our cache, but is there a way to get the users' browsers to get the new .htaccess file without the user clearing cache manually on his own initiative? 回答1: If you're using RewriteRule, just use R instead of R

Browser caching - Why does IE9 always show http 304 when actually it did not hit the network?

六月ゝ 毕业季﹏ 提交于 2019-12-28 13:04:30
问题 I am trying to set up caching correctly and have set Expires headers to 365 days in the future which is working correctly but not showing correctly in IE9. Does anyone know why? When you visit any website in IE9 (eg www.google.com) then click Enter in the address bar to revisit it with full caching it shows a lot of extra 304s which Fiddler does not show. Looking in the network inspector tab (on F12), IE9 shows that it has received 304 Not Modified responses for CSS and JS files and 3 images

Browser caching - Why does IE9 always show http 304 when actually it did not hit the network?

≯℡__Kan透↙ 提交于 2019-12-28 13:04:25
问题 I am trying to set up caching correctly and have set Expires headers to 365 days in the future which is working correctly but not showing correctly in IE9. Does anyone know why? When you visit any website in IE9 (eg www.google.com) then click Enter in the address bar to revisit it with full caching it shows a lot of extra 304s which Fiddler does not show. Looking in the network inspector tab (on F12), IE9 shows that it has received 304 Not Modified responses for CSS and JS files and 3 images

Browser caching - Why does IE9 always show http 304 when actually it did not hit the network?

…衆ロ難τιáo~ 提交于 2019-12-28 13:04:12
问题 I am trying to set up caching correctly and have set Expires headers to 365 days in the future which is working correctly but not showing correctly in IE9. Does anyone know why? When you visit any website in IE9 (eg www.google.com) then click Enter in the address bar to revisit it with full caching it shows a lot of extra 304s which Fiddler does not show. Looking in the network inspector tab (on F12), IE9 shows that it has received 304 Not Modified responses for CSS and JS files and 3 images

How to prevent content being displayed from Back-Forward cache in Firefox?

我的未来我决定 提交于 2019-12-28 06:25:03
问题 Browser: Firefox 6.0 I've Page A with the following setup to make sure the content is NOT stored in the bfcache of the browser: 1) $(window).unload(function(){}); 2) Following HTTP headers: <meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="expires" content="-1" /> <meta http-equiv="cache-control" content="no-cache"/> I've also hooked up the events pagehide and pageshow . When I am navigating away from the page, pagehide is invoked with CORRECT value for the event property

How to prevent content being displayed from Back-Forward cache in Firefox?

百般思念 提交于 2019-12-28 06:24:16
问题 Browser: Firefox 6.0 I've Page A with the following setup to make sure the content is NOT stored in the bfcache of the browser: 1) $(window).unload(function(){}); 2) Following HTTP headers: <meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="expires" content="-1" /> <meta http-equiv="cache-control" content="no-cache"/> I've also hooked up the events pagehide and pageshow . When I am navigating away from the page, pagehide is invoked with CORRECT value for the event property