On Dec 7, 2005, at 1:30 PM, Jonathan LaCour wrote:


On Dec 7, 2005, at 3:58 PM, Bob Ippolito wrote:
If we were adding something for this explicit purpose, I'd prefer to
add a flag to the url function and then have TurboGears eat the
incoming "tg_random" variable so that you don't need to add another
parameter to your methods.

FYI, I've opened ticket 196 to implement this solution. It's a small
enough task that I've targeted it for 0.9.

Why not just set the cache headers correctly instead?

I tried this repeatedly, and never was able to get it working with IE. The only solution I have found that works is sending a timestamp in the URL (which is similar to the proposed hash solution).

Have you had a different experience with XMLHttpRequest and caching in IE? If so, exactly what headers did you have to send? This would be a much more elegant solution if it actually works :)

Setting Expires should work, but I don't have a Windows box in front of me to confirm that I'm remembering it correctly.

-bob

Reply via email to