GMOD / Apollo

Genome annotation editor with a Java Server backend and a Javascript client that runs in a web browser as a JBrowse plugin.
http://genomearchitect.readthedocs.io/
Other
128 stars 85 forks source link

Caching same code even though versions change #195

Open monicacecilia opened 9 years ago

monicacecilia commented 9 years ago

At genomearchitect.org/WebApolloDemo the "Dark" color scheme cannot be enabled. "Dark" theme works well on Staging.

Error shown on console: GET http://icebox.lbl.gov/WebApolloDemo/jbrowse/data/tracks.conf 404 (Not Found)dojo.js:357

screen shot 2015-03-10 at 10 11 36 am

nathandunn commented 9 years ago

@monicacecilia I was able to reproduce this when I was using the cached version of genomearchitect.

That being said, it is silly and dangerous that we force a user to blow out their cache when a version is updated. Grails assets does this automatically (and I think GWT). If dojo doesn't have this mechanism (which would surprise me), I think it wouldn't be too hard to have it use this mechanisms.

Here is some relevant discussion:

http://stackoverflow.com/questions/118884/what-is-an-elegant-way-to-force-browsers-to-reload-cached-css-js-files

Here is Apache/google's modspeed, which solves some of the same problems.

https://code.google.com/p/modpagespeed/

@cmdcolin We don't have to fix this, but I was wondering what you thought. I think that we can agree that its a bit silly to force the user's to reload (though I'm sure they must be used it by now).

nathandunn commented 9 years ago

Have you tried this with an incognito browser? I’m sure you have, just wanted to double-check. I shouldn’t say that I cleared my cache, but I did use an incognito browser.

Nathan

On Mar 10, 2015, at 10:36 AM, Monica Munoz-Torres notifications@github.com wrote:

I've cleaned the cache a few times and I still am not able to see the "Dark" theme.

— Reply to this email directly or view it on GitHub https://github.com/GMOD/Apollo/issues/195#issuecomment-78105862.

monicacecilia commented 9 years ago

Well, refreshing with cache flush (Mac/Chrome/ Shift+command+R = cache is ignored & resources are requested like no cache existed) does not work. Only After cleaning all browsing data. meh.

nathandunn commented 9 years ago

Yeah. Its 2015. We probably need a better solution.

Nathan

On Mar 10, 2015, at 10:40 AM, Monica Munoz-Torres notifications@github.com wrote:

Well, refreshing with cache flush (Mac/Chrome/ Shift+command+R = cache is ignored & resources are requested like no cache existed) does not work. Only After cleaning all browsing data. meh.

— Reply to this email directly or view it on GitHub https://github.com/GMOD/Apollo/issues/195#issuecomment-78106804.

rdhayes commented 9 years ago

We have similar concerns with caching in JBrowse itself, so I'd be willing to help out testing of mod_pagespeed or whatever architecture change looks best.

Richard D. Hayes, Ph.D. Joint Genome Institute / Lawrence Berkeley National Lab http://phytozome.jgi.doe.gov

On Tue, Mar 10, 2015 at 10:58 AM, Nathan Dunn notifications@github.com wrote:

Yeah. Its 2015. We probably need a better solution.

Nathan

On Mar 10, 2015, at 10:40 AM, Monica Munoz-Torres < notifications@github.com> wrote:

Well, refreshing with cache flush (Mac/Chrome/ Shift+command+R = cache is ignored & resources are requested like no cache existed) does not work. Only After cleaning all browsing data. meh.

— Reply to this email directly or view it on GitHub < https://github.com/GMOD/Apollo/issues/195#issuecomment-78106804>.

— Reply to this email directly or view it on GitHub https://github.com/GMOD/Apollo/issues/195#issuecomment-78110590.

nathandunn commented 9 years ago

Thanks.

Nathan

On Mar 10, 2015, at 12:38 PM, Richard D. Hayes notifications@github.com wrote:

We have similar concerns with caching in JBrowse itself, so I'd be willing to help out testing of mod_pagespeed or whatever architecture change looks best.

Richard D. Hayes, Ph.D. Joint Genome Institute / Lawrence Berkeley National Lab http://phytozome.jgi.doe.gov

On Tue, Mar 10, 2015 at 10:58 AM, Nathan Dunn notifications@github.com wrote:

Yeah. Its 2015. We probably need a better solution.

Nathan

On Mar 10, 2015, at 10:40 AM, Monica Munoz-Torres < notifications@github.com> wrote:

Well, refreshing with cache flush (Mac/Chrome/ Shift+command+R = cache is ignored & resources are requested like no cache existed) does not work. Only After cleaning all browsing data. meh.

— Reply to this email directly or view it on GitHub < https://github.com/GMOD/Apollo/issues/195#issuecomment-78106804>.

— Reply to this email directly or view it on GitHub https://github.com/GMOD/Apollo/issues/195#issuecomment-78110590.

— Reply to this email directly or view it on GitHub.