NeWorld

Ajax ir IE6 cache bėdos

by neworld on Bal.18, 2007, under ajax

Jeigu ką nors mėginate daryti naudodamis ajax technologiją, patatarimas, visada iš serverio siuskite header’į:

Cache-Control: no-cache, must-revalidate
Expires: Mon, 26 Jul 1997 05:00:00 GMT

Pavizdys:

[code lang="php"] header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
[/code]

Kadangi IE6 pagal default nustatymus tikrina tik pagal adresą, todėl jeigu du sykius siusite užklausą tuo pačiu adresu ir nebus šio headerio, tai pirmos užklausos rezultatą patalpins cache ir daugiau kurį laiką naudos tik iš cache.

  Balsuoti

Leave a Reply

 

You need to log in to vote

The blog owner requires users to be logged in to be able to vote for this post.

Alternatively, if you do not have an account yet you can create one here.

Powered by Vote It Up

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...