javascript - Invalidate Browser cache for a single page -



javascript - Invalidate Browser cache for a single page -

i realize similar q asked 5 years ago. i'm hoping there may improve reply today.

is there programmatic way tell browser expire cached version of page & request refresh server, next time? time based expiry not fast enough.

requirement: want client reload the page own cache, until tell (via signalr) page obsolete. if flush just-that-page local cache, next time user looked @ it, pull latest version server. 1 time more cached locally.

why? info on page takes long time download & javascript adds seconds render time. remains static 30 mins or more. changes few times minute. fixed time interval cache, doesn't work.

asp mvc lets me invalidate output cache of page on server. great. if same on client awesome speed improvement.

note: i'm not changing css, images or javascript. want strip out lot of jscript & of html rendering on server, 1 time per info alter event.

i had similar situation in project wanted clients take latest version of files after each release. simple spring mvc application. prepare applied created jsp tag add together release number url sent server like:

www.abc.com/test.html/1 www.abc.com/test.html/2

each time there alter in url browser not uses cached re-create gets file server.

release number can maintain in config file , alter after each release.

javascript asp.net-mvc caching browser

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -