[dokuwiki] Re: Javascript from js.php sometimes incomplete

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 07 Mar 2007 15:03:54 +0100

Gabriel Birke writes:

Cannot find a solution. I did just little searching, it seems that the javascript is complete into the dokuwiki cache, it gets truncated only in the browser (firefox).

But don't be too confident in my analysis.

The error occured again for me, I tested with Opera - no problem, I disabled
the cache in Firefox - no problem. Apparently JS files cached by FF are
garbled. I did a search in bugzilla and found these two bugs:
https://bugzilla.mozilla.org/show_bug.cgi?id=355567

I think I posted this one here a while ago already - I thinks this causes many of troubles users experience, too.

https://bugzilla.mozilla.org/show_bug.cgi?id=316033

This one is new to me, but looks promising. If the bug is caused by a missing newline at the end of the compressed javascript, it would be easy to add a newline.

Because all users of our internal Wiki use Firefox, I patched js.php (patch
is attached) to prevent Firefox from caching the file. I know this is a very
brutal measure and will increase bandwidth usage.

This is a bit drastic I guess. In my experience doing a shift-reload to get an uncorrupted version into the browser cache usually works.

Andi


--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: