Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5200

Prevent caching of json ajax request

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Release 09.04, Release 10.04, Release Branch 12.04
    • None
    • framework
    • Bug Crush Event - 21/2/2015

    Description

      An user who is using IE9 might experience a strange behaviour inside a webpage with json ajax requests. This is so because IE9 does caching of these requests.

      I added in common/../CommonEvents.java , jsonResponseFromRequestAttributes method the following:
      response.setDateHeader("Expires", -1);
      response.setHeader("Cache-Control", "private");
      response.setHeader("Last-Modified", new Date().toString());
      response.setHeader("Pragma", "no-cache");
      response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");

      Attachments

        Activity

          People

            Unassigned Unassigned
            zerossj Roberto Benítez Monje
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: