<? php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
Fri, 03/11/2005 - 13:55
#1

RE: Firefox Pasting and Cache
RE: Firefox Pasting and Cache
Also, cache REALLY speeds up loading of the editor, which is what you want in most cases.
It seems cache is mostly a problem when developing plug-ins, etc., so if you RELIGIOUSLY clear your cache, and switch between browsers and make new files even, you'll be more sure of what is really happening.
hth!
RE: Firefox Pasting and Cache
* Change the fckconfig.js file (changed fonts) and saved it.
* On reloading the page in Mozilla 1.01 it had the 'broken behavior' - not able to paste, not able to navigate the doc with arrow keys.
* Cleared Mozilla cache and reloaded the editor page
* Worked fine again.
That is WITH my header changes as above, so these cache control headers didn't seem to help this problem.
I'm inclined to agree with Denny, I think this must have something to do with the way that mozilla works with cached Javascript, which does not bode well for changing the editor when it's in production, or is 'live', as you cannot force the users to clear their cache.
Well here's to clearing my cache.
RE: Firefox Pasting and Cache
RE: Firefox Pasting and Cache
I had none of these problems with RC2.
RE: Firefox Pasting and Cache
RE: Firefox Pasting and Cache
Odd think is .. it works fine when I run it locally, but as soon as I browse to it on the web server the buttons are disabled in FF. Your online demo works fine too.
I have added both server-side and client-side scripts to [attempt to] disable caching because every now and then.. say 1 in 10 it works fine in both browsers.
RE: Firefox Pasting and Cache
RE: Firefox Pasting and Cache
Out of curiosity, did you try my JS no-cache solution? Or, better yet, did you make super-sure your cache was clear?
*Note that some stuff is disabled unless you have highlighted some text...
RE: Firefox Pasting and Cache
Super-sure? Like. Tools, options, privacy, cache .. click clear... is there another way?
RE: Firefox Pasting and Cache
RE: Firefox Pasting and Cache