Prevent IE caching

后端 未结 5 1926
慢半拍i
慢半拍i 2020-12-23 22:39

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 a

5条回答
  •  囚心锁ツ
    2020-12-23 23:24

    Add tag type="button" into actual action button.

    The default value of the type attribute depends on the current document compatibility mode. The default value is submit. In other compatibility modes the default value is button. When the BUTTON element is submitted in a form, the value depends on the current document compatibility mode. Windows Internet Explorer 8 and later. The default value of the type attribute depends on the current document compatibility mode. In IE8 Standards mode, the default value is submit. In other compatibility modes and earlier versions of Windows Internet Explorer, the default value is button. Internet Explorer 8 and later. When the BUTTON element is submitted in a form, the value depends on the current document compatibility mode. In IE8 mode, the value attribute is submitted. In other document modes and earlier versions of Internet Explorer, the innerText value is submitted.

    http://msdn.microsoft.com/en-us/library/ie/ms535211(v=vs.85).aspx

提交回复
热议问题