Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43929

Avoid browser caching for AJAX requests

    XMLWordPrintable

Details

    • Task
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • core
    • None

    Description

      AJAX calls are cached by Internet Explorer by default (when no specific Cache-Control header is in the response). This makes <l:ajax> jelly to behave mistakenly on IE.

      Asynchronous HTTP calls are usually used to load dynamic data so caching it does not make sense.

      This change was already applied in the more general layout.jelly (commit).

      Attachments

        Issue Links

          Activity

            Code changed in jenkins
            User: amuniz
            Path:
            core/src/main/resources/lib/layout/ajax.jelly
            http://jenkins-ci.org/commit/jenkins/d05fcdecf2d49d25a46e6974b0340057301d10b0
            Log:
            JENKINS-43929 Specific cache control header on ajax.jelly

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: amuniz Path: core/src/main/resources/lib/layout/ajax.jelly http://jenkins-ci.org/commit/jenkins/d05fcdecf2d49d25a46e6974b0340057301d10b0 Log: JENKINS-43929 Specific cache control header on ajax.jelly

            Code changed in jenkins
            User: Daniel Beck
            Path:
            core/src/main/resources/lib/layout/ajax.jelly
            http://jenkins-ci.org/commit/jenkins/43b06d5a262c28232e5c38ffd16b94c1bfdb1499
            Log:
            Merge pull request #2861 from amuniz/JENKINS-43929

            JENKINS-43929 Specific cache control header on ajax.jelly

            Compare: https://github.com/jenkinsci/jenkins/compare/c362bfc8c743...43b06d5a262c

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/resources/lib/layout/ajax.jelly http://jenkins-ci.org/commit/jenkins/43b06d5a262c28232e5c38ffd16b94c1bfdb1499 Log: Merge pull request #2861 from amuniz/ JENKINS-43929 JENKINS-43929 Specific cache control header on ajax.jelly Compare: https://github.com/jenkinsci/jenkins/compare/c362bfc8c743...43b06d5a262c
            danielbeck Daniel Beck added a comment -

            Fixed in 2.59 (to be released within a day or so).

            danielbeck Daniel Beck added a comment - Fixed in 2.59 (to be released within a day or so).

            People

              amuniz Antonio Muñiz
              amuniz Antonio Muñiz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: