Skip to content

Instantly share code, notes, and snippets.

@wataru420
Created October 9, 2012 15:36
Show Gist options
  • Save wataru420/3859576 to your computer and use it in GitHub Desktop.
Save wataru420/3859576 to your computer and use it in GitHub Desktop.
iOS6はnoCacheだよ!
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
<package name="myApp-default" extends="struts-default">
<result-types>
<result-type name="json" class="org.apache.struts2.json.JSONResult">
<param name="noCache">true</param>
</result-type>
</result-types>
</package>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment