C#,vb.net,MVC,Jquery,javascript,jscript,vbscript,html,vb,sharepoint,COM,WPF,WCF,Wwf,Asp,Asp.net,questions & answers,

Latest in Sports

Thursday, June 28, 2012

Back Button Issue- setting the ‘pragma: no cache’, ‘Expires’, ‘SetNoStore’ and ‘CacheControl: nocache, must-revalidate’,

We need some help from you regarding the back button issue we are facing in our application.
 
We have a shopping cart page in our application, on submitting the cart page we are redirecting to the Order Confirmation page. Now since once the orders are placed, the items in the shopping cart page should change. So we need to reload the cart page once the user comes to the cart page by clicking the Back Button in the browser.
 
We tried out the options to expire the web page by setting the ‘pragma: no cache’, ‘Expires’, ‘SetNoStore’ and ‘CacheControl: nocache, must-revalidate’, but all these doesn’t reload the page but rather shows ‘Web Page is expired’.
 
Is there any way we can refresh a page while coming back by clicking Back Button in the browser?
Any help will be highly appreciated.
 
Thanks
AVIK

No comments:

Post a Comment