My website homepage should look every time a user downloads it. However, it is loaded from memory, so it looks the same every time.
How can I make sure it loads a new page, not a cached page?
thank
Do you want it programmatically or not?
Yes - Send HTTP headers that relate to cache management and expire.
No - click the "Change" button before clicking the update button ... this is to perform a hard reboot.
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.NoCache); }
in your code.
set the request header for caching using Cache-Control: no-cache and response headers as Pragma: no-cache. and expires:
Source: https://habr.com/ru/post/1772801/More articles:WCF / WPF Best Practices - WCF ChannelFactory and PRISM - wpfHow to wait for the Linux kernel stream (kthread) to exit? - cshowing link address in C # (WCF debugging) - c #C # update application - c #IIS issue, web application - iisHas anyone worked with TestCocoon? - testingILGenerator emits Break statement when storing items in an array - cildoctrine 2 dql alias - phpAndroid: what layout when IME is active? - androidDoes Concrete5 have something similar to Drupal CCK and Views? - drupalAll Articles