How can I refresh the view when I open my web application? The problem now is that I see the view with the entries that was opened last. When I clear the cache of the internet explorer it’s okay, but that not a solution. Any suggestions?
Greetz
How can I refresh the view when I open my web application? The problem now is that I see the view with the entries that was opened last. When I clear the cache of the internet explorer it’s okay, but that not a solution. Any suggestions?
Greetz
Subject: refresh view when web application is opened
As you have yourself observed its not a question of refreshing the view. The browser is serving the old page from its cache instead of fetching the current state from the server. To learn about the issue involved, search the forum for META e.g.
Subject: RE: refresh view when web application is opened
First of all, thank you very much. I used this code in the HTML header of the $$ViewTemplateDefault:@SetHTTPHeader(“Expires”;@Now);
@SetHTTPHeader(“Cache-control”;“No-cache”)
Now, there’s one little problem. The number “1” appears on top of my view… Is there a way to get this away?
Greetz and thx again
Subject: RE: refresh view when web application is opened
Without knowing exactly what is on the page its impossible to say but spurious text at the top of the page is usually caused by bad html formatting. Browsers are historically very lenient when dealing with html formatting errors, they usually try to ‘guess’ the correct format and don’t generate errors. I recently had two lines of text overlaying each other at the top of the page where nothing should have been. Turned out I had written at one point
Subject: RE: refresh view when web application is opened
I posted the code of the HTML header:
@SetHTTPHeader(“Expires”;@Now);
@SetHTTPHeader(“Cache-control”;“No-cache”)
Before I had this code everything was ok, but the code works and does what it has to do. Do you see a mistake in this code?
Subject: RE: refresh view when web application is opened
OK it does the same to me. That 1 is the return value of @SetHTTPHeader. You have to give the formula an empty value as follows…
@SetHTTPHeader(“Expires”;@Now);
@SetHTTPHeader(“Cache-control”;“No-cache”);“”
Subject: RE: refresh view when web application is opened
Thank you very much, it works perfect now.
Greetz