开发者

HTML Meta CACHE-CONTROL Vs input element autocomplete

This question refers

Where does setting the CACHE-CONTROL HTML meta tag come into the autocomplete argument? Is it necessary to explicitly set autocomplete=off for sensitive inputs if you have told the browser not to cache anything by setting CACHE-CONTROL=NO-CACHE? I 开发者_StackOverflowassume that if the browser has been told not to cache anything, it can't cache my sensitive fields, but then belt and braces when it comes to security, right? Am I overdoing it by having both?

Thanks,

Fintan


The browser autocomplete is unrelated to the browser cache. The cache saves the actual data sent to the browser by web sites - i.e. the HTML code, CSS, Javascript and images. The autocomplete is a browser feature that saves what the user types into forms.

Setting "no-cache" will not stop autocomplete, it will just stop the browser saving the page to the user's computer. If the page itself contains possibly sensitive information (outside of the form), then use it, otherwise it the user must download the page every time they visit it, using more bandwidth for them and the server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜