Page cache exists on the server. You'll need to make a HTTP request to clear the cache. This can be accomplished using jQuery AJAX by invoking a Web Form that clears the page cache.
$.get( "/path/to/the/file.aspx", function( data ) {
console.log(data);//page results for debugging
});
Then simply clear the cache in your aspx page. Perhaps in the Page_Load event.
Member
23 Points
180 Posts
How to access/clear page cache via Javscript ?
Sep 26, 2019 10:45 AM|hamed_1983|LINK
Hi
i'm using this code to save my data inside Page.Cache object :
However, I want to access/clear this object via javscript code.
Can anybody help me how to accomplish this task ?
Thanks in advance
All-Star
43751 Points
18729 Posts
Re: How to access/clear page cache via Javscript ?
Sep 26, 2019 11:17 AM|mgebhard|LINK
Page cache exists on the server. You'll need to make a HTTP request to clear the cache. This can be accomplished using jQuery AJAX by invoking a Web Form that clears the page cache.
Then simply clear the cache in your aspx page. Perhaps in the Page_Load event.
https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.page.cache?view=netframework-4.8