apache - Chrome and Firefox are not clearing cache for a document served via mod_rewrite -


i'm having lot of trouble getting chrome , firefox clear cached version of document have being served via mod_rewrite. say, can't either chrome or firefox go server modified version.

here looks in network panel of chrome developer tools:

headers according chrome

when make request command line curl @ headers server sending back, here's get:

enter image description here

/dashboard rewritten /index.html using rewrite rule:

rewritebase / rewritecond %{request_filename} !-l rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule .* index.html [l,qsa]

i have tried can think of document out of chrome's cache, no avail. appreciated.

update: here's screenshot of page when in incognito mode. have caching disabled dev tools open, cleared cache, , incognito mode active. i'm still getting first page cache.

enter image description here

here's was: i'm using "manifest" file described here:

https://developer.mozilla.org/en-us/docs/web/html/using_the_application_cache

in build have new version , build line being populated git commit id , build number, respectively, jenkins.

however, looking @ local builds, , way had set file getting "undefined" written version , build on every build, contents of file weren't changing.

the browser see file wasn't changing, had no reason think had outdated version of index.html.

i updated grunt build put in timestamp when jenkins environment variables aren't there, , fixed problem -- part. now, when load application, cached version of index.html invalidated once browser sees manifest has changed. problem i'm looking @ stale version of index.html now, entire session on outdated version of index.html.

when refresh, new version of index.html.

plan put in javascript function , manifest file, pull version, , store in cookie. on page load i'll compare what's in cookie, , if don't match (new version of applicatoin), i'll top.location.reload() newest index.html.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -