如果AJAX的資料被cached,那也是一樣
你用jQuery寫AJAX嗎?記得加上下面這行,就可以避免被cached了
$.ajaxSetup({ cache: false });
$.ajaxSetup({ cache: false });
GET /the-page HTTP/1.1
Host: www.the-web-site.com
Accept-Encoding: gzip, deflate
<filter></filter>
<filter-name>GzipFilter</filter-name>
<filter-class>org.eclipse.jetty.servlets.GzipFilter</filter-class>
<init-param></init-param>
<param-name>mimeTypes</param-name>
<param-value>text/html,text/plain,text/xml,application/xhtml+xml,text/css,application/javascript,application/x-javascript,application/json,image/svg+xml</param-value>
<filter-mapping></filter-mapping>
<filter-name>GzipFilter</filter-name>
<url-pattern>/*</url-pattern>