A bit complex - not too fresh.

Results 1 to 4 of 4

Thread: A bit complex - not too fresh.

  1. #1
    Conrad Guest

    Default A bit complex - not too fresh.

    Here is the setup:<BR><BR>I have a page that pulls data from a SQL Server 7.0 database. I am using ASP 3.0(Windows 2000). The page is set to pull information from a different *table* depending on what information the user wants.<BR><BR>The problem:<BR><BR>Unless the user hits refresh he will only see the last page that was created. Appearently, a refresh issue.<BR><BR>Attempted sollutions:<BR><BR>I inserted the following code at the top of the page:<BR><BR>Response.CacheControl = "no-cache"<BR>Response.AddHeader "Pragma", "no-cache"<BR>Response.Expires = -1<BR><BR>to no avail.<BR><BR>I am using Session variables to set the table from which to draw the data. I changed this to using query strings. Again, no luck.<BR><BR><BR>Thought(s):<BR><BR>Is a page cached by URL or by say... the title. If it is by title then I can simply change the title per table.<BR><BR>Maybe I should take up nitting.<BR><BR><BR>Thanks for any help that you may render.

  2. #2
    balletchick Guest

    Default RE: A bit complex - not too fresh.

    There are about 20 things you can try to solve this problem (both on ther server config and in your scripts). But here is a little trick I have used that seems to work EVERY TIME... even if it is a bit fugly...<BR><BR>Add a new param to your querystring (call it whatever you like, but I use FORCEREFRESH) and assign a random value to it every time (e.g. REFRESH=847756). Since the URL is changing, IE (and IE is the biggest culprit when it comes to this problem) will force a &#039real&#039 page load from the server.<BR><BR>Does that make sense? I hope this helps!

  3. #3
    javawiz Guest

    Default RE: A bit complex - not too fresh.

    I know a simple tip that will do the trick. Insert some random parameter number at the end of the URL, and the client browser will think it&#039s a new URL. For example, instead of using:<BR><BR>http://myserver/getinfo.asp?param1=my_param<BR>change it to:<BR><BR>http://http://myserver/getinfo.asp?param1=my_param&asdf=random_number_her e

  4. #4
    javawiz Guest

    Default RE: A bit complex - not too fresh.

    Coincidentally, that was the exact same advice I gave.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts