iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I have an issue with the WebTab and caching. I use the WebDesktop which has a shortcut that launches a page with a WebTab on it. The webTab is using Iframe and points to an aspx page. On the aspx page I have a webgrid that contains multiple records. From here I can edit a record through a WebDialogBox page.
When I update a record, the update gets shown in the WebGrid. This is correct. But If I refresh the browser (F5), before closing the page with the WebTab on it, this causes a caching issue. When I open the WebTab page again from the shortcut and click on a tab pointing to the aspx page with WebGrid on it, the Page_Load event does not get called. It is as if it holds onto a cached version of this page.
This in turn causes the Webgrids records to show the old values and this only updates when I press refresh on the webgrid. I am using IE8. I tried this in chrome but couldnt replicate the issue.In IE 8 I also hosted the WebGrid page in its own window launched from its own shortcut so not to use the webtab and I could not replicate the issue.
Regards,
Dermot
Based on my analysis and research, your assement of the issue is correct. The cause of the issue is IE8 browser cache. Here are some article that I found on how to disable browser cache in ASPX page, Disable Browser Caching and Prevent Web Pages from Being Saved in Cache.
If you are using C#, the snippet from the article Prevent WebPages from Being Saved in Cache is:
<%//FROM MIND Magazine,//September 1999 issue//GeekToGeek column by//Robert Hess//Below must be place before HTML tag//and everything else on pageResponse.Expires = -1;Response.AddHeader("Pragma", "no-cache");Response.AddHeader("cache-control", "no-store");%>
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname