Might I suggest that we add a config var called "can-cache" or some such and default it to false?
I don't know if the idea about appending random vars to the iframe's src variable is rfc compliant, but it seems to work, and it would cut down SO much on problems for people trying to get this up and running in their own custom manners... then after they know their implimentation works they can set the cache variable to true...
Neh? Neh? Good Idea? or should I go soak my head? just an idea...
Tue, 03/15/2005 - 11:23
#1
RE: Cache Problems
FCKScriptLoader.AddScript('../fckconfig.js?');
With
var daDate = new Date();FCKScriptLoader.AddScript('../fckconfig.js?'+ daDate.getTime());
in /js/fck_startup.js
RE: Cache Problems
I have a problem with both RC3 and the preview.
I have deployed FCK to my webserver and the samples open up perfectly using FF. However, with some machines running IE (6), it throws a javascript error (although the same machines can access the samples using FF).
I have cleared my cache, and I have restarted IE.
The error is: "undefined" is null or not an object. fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default
Line 24, Char 161.
Any help would be very much appreciated.
RE: Cache Problems
And the _samples work fine.
This is with the FC preview.
Did you try the online demo from the same machines? That might be another 'yard stick' so to speak.
Also, is the server linux, windows, etc.?
Lastly, you can try the code snippits I posted to ensure the editor is not loaded from cache.
Good Luck!
RE: Cache Problems
I have now:
* Physically restarted the server (FC3; JBoss 3.2.x; Squid)
* Restarted my test machine
* Changed and deployed the startup.js.
* Cleared IE's cache.
My error persists (with FF from the same box there are no problems).
However, the only machine I know of with this problem is my box. And it browses the FCK samples fine.
I'm puzzled. And I don't like it when things don't work. But, I guess I'll just find another test machine...
Any thoughts would be welcomed.