IE grab cached content

I am confusing the instance where IE8 is doing data caching. FF and Chrome have no problem saving.

The page flow looks like this: a dropdown list is given, and on the server side, multiple fields are written based on the selection. Then something else happens. This is a multi-step verification process - the first step sets the base ... the second step sets up additional features, the third step presents the final version.

All these steps happen on the same .aspx page - jQuery is "show / hide" different containers depending on the current step. It would be tempting to look for server side and / or ajax errors, other than the fact that FF and Chrome work just fine.

When IE users go through this control stream a second time, the data is retained from the original check. (again ... great for FF and Chrome).

Data that is not updated is generated on the server side:

<div>
    Registering users for: <b>
        <%=Model.Webinar.Title %></b><br />
    <%=Model.Webinar.Presenter.FullName %><br />
    <b>
        <%=Html.DisplayDate(Model.Webinar.Date)%></b> - <i>
            <%=Html.DisplayTime(Model.Webinar.Date, timeZ, false)%>
            -
            <%=Html.DisplayTime(Model.Webinar.Date, Model.Webinar.Duration, timeZ)%><br />
        </i>
</div>

      

It doesn't generate data ... it's really, really weird how IE can cache this so energetically. I tried adding a hidden getDate () field and I saw some effect, but not consistent, bulletproof results.

I've seen a few discussions around IE and AJAX data links, but that shouldn't come into play here. Is there any other meta code to use?

+2


a source to share


1 answer


I would set the appropriate HTTP headers to prevent caching on both the main page and AJAX responses. Try:

Cache-Control: no-cache
Pragma: no-cache

      



Also, if it is form fields that are deprecated, it might be IE autocomplete causing the problem. Try adding autocomplete = "off" to form margins.

+2


a source







All Articles