Headers expire

Hi,

is there a way to set the php headers of a controller action to expire in a specific date?

I use ajax to load some data and the browsers keep caching the previous data.

Even if you were to expire headers some browsers (take a bow, IE6) will still cache any GET request responses if it is exactly the same as the previous request.

A simple solution would be to send a timestamp GET parameter on each request, that will probably solve this issue. If i'm not mistaken JQuery already does this automatically on any GET requests sent. Are you not using the bundled JQuery libraries?

The timestamp is a good idea!

No, I didn't use JQuery for those requests. I used another library.

Thanks.