对不起,我的问题越来越多:
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");
写了这两句,为什么就上一页显示已失效的效果?
是不是addHeader以后就增加了一个新页面?
addHeader
public void addHeader(java.lang.String name,
java.lang.String value)Adds a response header with the given name and value. This method allows response headers to have multiple values.
Parameters:
name - the name of the header
value - the additional header value
See Also:
setHeader(java.lang.String, java.lang.String)