Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP Javascript url and browser caching
RAP Javascript url and browser caching [message #1393231] Thu, 03 July 2014 13:10 Go to next message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 169
Registered: March 2010
Location: France
Senior Member
Hello,

Accessing to the same application but packaged with different RAP version, from the same browser instance, client crashes probably because rap-client.js and resources.js are cached.

For example, if you start a jetty with RAP 2.2 demo, and another jetty on the same machine with a different port and RAP 2.3 demo, from the same browser instance, it is not possible to switch from RAP 2.2. to RAP 2.3 demo, without having client error.

Port is not taken into consideration by browsers for caching, so it wrongly chaches rap-client.js for both

This could be solved by having rap version part of the url for ressources, /rwt-resources/2-3/rap-client.js for example

I agree it is a quite minor issue, but it can be ab bit anoying during an upgrade process, if you have users accessing your application, if you upgrade it with a new RAP version, all users that still have their browser instances kept alive between the 2 versions will face the error.

Is it seomthing that could deserve a bug ?
Regards,
Arnaud
Re: RAP Javascript url and browser caching [message #1393800 is a reply to message #1393231] Fri, 04 July 2014 09:32 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 395
Registered: July 2009
Senior Member
Hi.

> Is it seomthing that could deserve a bug ? Regards,

I'd say so. It definitely looks broken to the user.

Greetings,
Tim

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: RAP Javascript url and browser caching [message #1456609 is a reply to message #1393800] Thu, 30 October 2014 14:35 Go to previous messageGo to next message
Stefan Klaus is currently offline Stefan KlausFriend
Messages: 21
Registered: February 2011
Junior Member
Is there already a bug reported? Faced today the same issue...

Thanks in advance
Stefan
Re: RAP Javascript url and browser caching [message #1456621 is a reply to message #1456609] Thu, 30 October 2014 14:54 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1975
Registered: July 2009
Senior Member
Yes... here it is:
439008: RAP javascript url should be unique per version
https://bugs.eclipse.org/bugs/show_bug.cgi?id=439008

Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Modified PDF won't refresh inside Brower control
Next Topic:Cool new feature: multiple tab support. How do I turn it off?
Goto Forum:
  


Current Time: Tue Jul 28 08:24:00 GMT 2015

Powered by FUDForum. Page generated in 0.02536 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software