This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Trouble with cached html in a frame. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Trouble with cached html in a frame." Watch "Trouble with cached html in a frame." New topic
Author

Trouble with cached html in a frame.

Kevin Cornwell
Ranch Hand

Joined: Feb 01, 2005
Posts: 34
I am using a wysiwyg (CuteEditor) editor in a one of my frames. After I exit the editor, by clicking another link in another frame, then click on the link for the html that was just edited, I get the old unedited version of the page. I have tried putting a no-cache header on the server but that breaks my download links to my .doc files.

Is there a way to prevent the browser from caching within a CSS or some other idea?

Thanks again,
Kevin C.


<a href="http://www.kevincornwell.com" target="_blank" rel="nofollow">http://www.kevincornwell.com</A>
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
I have tried putting a no-cache header on the server but that breaks my download links to my .doc files.

You can route your file access through streaming on the server - a servlet for example. That way the servlet can set the headers for whatever file it streams to the user.

-Yuriy
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
CSs has nothing to do with cache. There are the no-cache meta tags, but they tend not to work. The real solution for you would be change your browser to check for new pages all the time. The other thing that can be done is to append a timestamp to the links as a query string variable. That forces the browser to check for a new version since it thinks data is beeing submitted.

Eric
 
Consider Paul's rocket mass heater.
 
subject: Trouble with cached html in a frame.
 
Similar Threads
how to load one frame on completion of another
accessing frame contents
switch link from two url
Calling a frame
How to run my small simple Ajax program?