Hi Dave et al,

The "correct" fix is of course to send the correct anti-caching headers
from the server.

Given that the requested page is written in PHP, adding the following
should work (for all browsers, except for very nasty proxies):

  header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
  header("Expires: Mon, 01 Jan 1990 01:00:00 GMT");   // Date in the past
  // curtesy of php.net/header

Adding a timestamp is silly, changing internet options of course only
works locally.

-- 
Morten Barklund

Jason Bunting wrote:
> 
> I believe this is the fix (though I reserve the right to be incorrect!):
> 
> Tools -> Internet Options. On the General tab (first tab), click on Settings
> in the "Browsing history" section. Select "Every time I visit the webpage."
> 
> Let me know if that fixes the problem for you. Of course, this solution is
> very specific to the client hitting your page. If you are creating a site
> for use by people that may not have that setting setup that way, you will
> want to stick with the timestamp hack.
> 
> Jason Bunting
> 
>> -----Original Message-----
>> From: [email protected] [mailto:[EMAIL PROTECTED] On
>> Behalf Of Dave Marsh
>> Sent: Wednesday, October 10, 2007 1:21 PM
>> To: MochiKit
>> Subject: [mochikit] Re: IE 7 Issues
>>
>>
>> You are correct, adding a timestamp worked.  Do you know if there is a
>> way to shut it off?
>>
>> On Oct 10, 2:02 pm, "Kevin Damm" <[EMAIL PROTECTED]> wrote:
>>> It's probably an issue with IE7 aggressively caching the request.  Try
>>> adding a unique string (e.g. datetime and a random number) to the end
>>> of your request as part of the query string so that IE views it as a
>>> unique page.
>>>
>>> So, an example,http://mysite.com/ajax-process.php?var=value
>>> would becomehttp://mysite.com/ajax-process.php?var=value&t=1192039355-
>> 1325
>>> See other posts in this list for similar problems.
>>>
>>>  - Kevin
>>>
>>> On 10/10/07, Dave Marsh <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>>> Hello,
>>>>      I'm using mochikit 1.3.1 in a web application (it's being
>>>> included through turbogears if that makes a difference).  Everything
>>>> works fine in FF, but in IE 7 I'm having a strange problem.
>>>>       When I visit the page for the first time, the very first ajax
>>>> request is executed without a problem.  All subsequent requests,
>>>> however, are not even sent to the server (I added print statements to
>>>> my server side code to verify whether or not it was actually being
>>>> hit).  It seems to just recycle the previous response.
>>>>      Any help would be appreciated.
>>
>>
> 
> 
> > 
> 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to