A web app provider has asked for specific browser config

Posted by Matthew on Server Fault See other posts from Server Fault or by Matthew
Published on 2010-12-23T03:54:08Z Indexed on 2010/12/23 4:55 UTC
Read the original article Hit count: 245

Filed under:
|
|

They have asks to turn off caching on our browsers. I was aghast that they would ask such a thing.

I said to them;

To avoid caching it is best practice to use;

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

This should work across all browsers.

Their reply was;

We need to refresh javascript at runtime, this will not help us – any more ideas?

I replied;

Unsure what you mean by “refresh  javascript at runtime”.
If you are using ajax, browser caching can effect the XMLHttpRequest open method.
Adding these meta tags to the source has fixed this for me in the past.

Browser caching only caches resources, it should have no effect on site scripting.
These meta tags will bypass browser caching.

This is a reasonable request, isn't it?

© Server Fault or respective owner

Related posts about caching

Related posts about browsers