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

Prevent caching of json ajax request

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Release 09.04, Release 10.04, Release Branch 12.04
    • Fix Version/s: None
    • Component/s: framework
    • Sprint:
      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

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

              Dates

              • Created:
                Updated: