HighDots Forums  

Page cache

alt.html alt.html


Discuss Page cache in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
philby
 
Posts: n/a

Default Page cache - 05-09-2005 , 08:50 AM






I have an asp web page which gives the result of a search, and then you
click on links from it to go to linked pages in the same window (ie not
opening new windows). This is essentially the way most search engine sites
work. The problem I have it that when you go back to the results page the
(lengthy) search happens again because the page is not in the browser cache
(or the browser thinks it has to re-load it from the server and so it
ignores the cache).

I have looked up lots of (quite confusing) web sites about using http
headers and meta tags to force a page to ignore the local cache and reload
from the server, but I need to force it to USE the cache. How do I do this?

Philby



Reply With Quote
  #2  
Old   
SpaceGirl
 
Posts: n/a

Default Re: Page cache - 05-09-2005 , 11:24 AM






philby wrote:
Quote:
I have an asp web page which gives the result of a search, and then you
click on links from it to go to linked pages in the same window (ie not
opening new windows). This is essentially the way most search engine sites
work. The problem I have it that when you go back to the results page the
(lengthy) search happens again because the page is not in the browser cache
(or the browser thinks it has to re-load it from the server and so it
ignores the cache).

I have looked up lots of (quite confusing) web sites about using http
headers and meta tags to force a page to ignore the local cache and reload
from the server, but I need to force it to USE the cache. How do I do this?

Philby


You cannot FORCE a browser to do ANYTHING.


Reply With Quote
  #3  
Old   
Adrienne
 
Posts: n/a

Default Re: Page cache - 05-09-2005 , 12:33 PM



Gazing into my crystal ball I observed "philby" <ol2ls (AT) hotmail (DOT) com>
writing in news:m0Jfe.7818$31.2599 (AT) news-server (DOT) bigpond.net.au:

Quote:
I have an asp web page which gives the result of a search, and then you
click on links from it to go to linked pages in the same window (ie not
opening new windows). This is essentially the way most search engine
sites work. The problem I have it that when you go back to the results
page the (lengthy) search happens again because the page is not in the
browser cache (or the browser thinks it has to re-load it from the
server and so it ignores the cache).

I have looked up lots of (quite confusing) web sites about using http
headers and meta tags to force a page to ignore the local cache and
reload from the server, but I need to force it to USE the cache. How
do I do this?

Philby


I don't think this is a client side issue at all, this has something to do
with the way you are running your script.

If you have something like:
*** Search page ***
<% dim keyword
keyword = request.querystring("keyword")

sql = "SELECT results FROM table WHERE filter = " & keyword
set rs = createobject("ADODB.Recordset")
rs.Open sql, connectionstring
%>
<form method="get" action="<%=request.servervariables("script_name")% >">
<p><input type="text" name="keyword" value="<%=keyword%>"> <input
type="submit" value="Search"></p></form>

<% if rs.EOF then%>
<p>No results found</p>
<% else
while not rs.EOF
....%>
--- results ---
<a href="results.asp?keyword=<%=keyword%>">Result</a>
<% rs.Movenext
wend
rs.Close
set rs = nothing
set connection = nothing
end if
%>
*** Results page ***
<% dim keyword
keyword = request.querystring("keyword")
%>
<a href="searchpage.asp?keyword=<%=keyword%>">Back to search page</a>

That will let you keep the keyword across pages and return the visitor to
the results originally found. The user can then put in other keyword(s) as
needed.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.