Application.js wont reload in Safari

View: New views
2 Messages — Rating Filter:   Alert me  

Application.js wont reload in Safari

by joakim_ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

I've a problem with Qooxdoo and Safari 4.0.3 on Mac OS X. Every time I do any changes to the Application.js file I need to quit Safari in order to see the changes. I've tried to empty the cache and do the source-all command without no luck. In FireFox everything works well.

Somebody has a solution for this? Thanks a lot. :)

Re: Application.js wont reload in Safari

by Martin Wittemann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

that's a bug of Safari. It does not revalidate the dynamically loaded
javascript files.
https://bugs.webkit.org/show_bug.cgi?id=30862
I hope they fix it as soon as possible.

As a workaround I added an additional random parameter to every javascript
file the browser has to load. You can achieve that by editing the loader
template under tool/data/generator/loader.tmpl.js.
Attach the parameter to the url request in line 57. The line could look
something like this:
  elem.src = uri + "?disableChache=" + Math.random();

But keep in mind that this disables the cache in every browser and also in
the build version. So before deploying your application you should remove
the parameter.

Best,
Martin



joakim_ wrote:

>
>
> Hi.
>
> I've a problem with Qooxdoo and Safari 4.0.3 on Mac OS X. Every time I do
> any changes to the Application.js file I need to quit Safari in order to
> see
> the changes. I've tried to empty the cache and do the source-all command
> without no luck. In FireFox everything works well.
>
> Somebody has a solution for this? Thanks a lot. :)
> --
> View this message in context:
> http://old.nabble.com/Application.js-wont-reload-in-Safari-tp26209475p26209475.html
> Sent from the qooxdoo-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

--
View this message in context: http://n2.nabble.com/Application-js-wont-reload-in-Safari-tp3951323p3951931.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel