Clearing cache in IE10+ through jsp pages - caching

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Cache-control" content="no-cache, no-store">
<meta http-equiv=" Pragma" content="no-cache">
I have tried using this cache control tag in all my jsp pages.
But the data in the pages is not being refreshed while navigating from one page to another in IE10 unless I refresh the page or clear the cache manually everytime. There is no such refresh issue in chrome and firefox. I used
window.location.replace() for navigation between pages.
What else can be done for clearing cache in IE10+ through jsp pages?

Related

why thymeleaf templates doesnt work in mobile? [SOLVED]

I was developing a raw application in spring boot with thymeleaf and I can not make it work on mobiles, the page uses bootstrap and collapses perfectly when I lower the browser window, but on mobile devices, it scales to the full resolution possible, as if like desktop resolution where...
this is mi image of my app in mobile:
in mobile mode
this is my image when i try when collapse the window od navigator in responsive mode:
responsive mode
the code of my application is here: https://github.com/Daviddg91/APIUsuariosSpringBoot
thanks and good code, Regards
-----------------Edit:---------------
I have been testing the spring-mobile-device library but it only allows you to change the page according to the type of device, it does not allow you to autoconfigure the responsive of the page and integrate with the thymeleaf template
SOLVED: this meta tags in layout file was working responsive:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

How to clear page cache when hitting back button on browser (IE,Chrome,Firefox Safari)?

How to clear the cache of browser when hitting the back button on browser (IE,Chrome,Firefox Safari) In MVC4.tried with the following code but its not working
How to refresh page when hitting back button on browser (IE,Chrome,Firefox Safari)?
Can you guys help me out to do this.
Thanks,
Subhnai.
You need to tell browser to discard old page and fetch latest from server by specifying it in HTML > Head
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate" />

How to prevent moving WP8 web browser control content sideways?

Could someone help me with some solution that would prevent user from moving WP8 web browser content sideways but still allow to scroll vertically?
use the below meta tag in the web page to avoid sidewise scrolling.
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

back button shows previous page after logout in Symfony 2.1

I have done project in Symfony 2.1 in which session management works properly. i.e. after logout it shows login page.But while cliking on back button of browser it shows previous page which should not be shown as per requirements. If any action done on that page redirects to login screen again means no action is permitted after logout.
I tried different solution shown by others like:
In twig:
<META Http-Equiv="Cache-Control" Content="no-cache, no-store, must-revalidate">
<META Http-Equiv="Pragma" Content="no-cache">
<META Http-Equiv="Expires" Content="0">
But didn't workout for me.Any other way specially in Symfony to prevent this.Any suggestions are helpful.

Google Chrome cache buggery : Chrome does not fetch latest version of the page despite NO-CACHE

I want to know how to instruct Chrome not to use a cached version of a page. I cannot get Google Chrome [15.0.874.106 m] to load the latest version. There was a typo on the page and I've corrected it. Other browsers fetch the corrected page. Chrome, not. Here below is what I have in the header section; should I add anything or change something? Also, the browser is not set up "Under the Hood" to use any sort of DNS-prefetching. Just to be clear, I don't want to clear the cache manually, but want to know how to manipulate Chrome's page-caching policies in a declarative manner. Thanks
P.S. I had this problem once before (see this question) but the circumstances are somewhat different this time, so I don't know what's going on. This page too is being displayed in a frame, but it had a no-cache policy from the get-go.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML LANG="en-US">
<HEAD>
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="Wed, 26 May 2010 00:00:11 GMT">
<META NAME="ROBOTS" CONTENT="NOARCHIVE">
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
.
.
.
</HEAD>

Resources