我有应用程序,在点击浏览器的按钮后,它说“确认表单提交”,因为我不希望发生这种情况。对此有何建议?
我在servlet中写过类似的东西.. response2.setHeader("Cache-control", "no-cache, no-store");
response2.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
response2.setHeader("Pragma", "no-cache");
response2.setHeader("Expires", "-1");
response2.setHeader("Access-Control-Allow-Origin", "*");
response2.setHeader("Access-Control-Allow-Methods", "POST");
response2.setHeader("Access-Control-Allow-Headers", "Content-Type");
response2.setHeader("Access-Control-Max-Age", "86400");
response2.setHeader("Cache-Control","no-store");
response2.setDateHeader("Expires", 0);
如何处理这个...我应该保存缓存吗?这是因为没有存储缓存吗?