Skip to content

[JENKINS-43929] Avoid browser caching for AJAX requests #22052

Closed

Description

@jenkins-infra-bot

AJAX calls are cached by Internet Explorer by default (when no specific Cache-Control header is in the response). This makes 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).


Originally reported by amuniz, imported from: Avoid browser caching for AJAX requests
  • assignee: amuniz
  • status: Resolved
  • priority: Major
  • component(s): core
  • resolution: Fixed
  • resolved: 2017-05-07T21:57:41+00:00
  • votes: 0
  • watchers: 1
  • imported: 2025-11-24
Raw content of original issue

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).

Activity

  1. jenkins-infra-bot commented on Apr 28, 2017

    @jenkins-infra-bot
    Author
    • Remote link associated with this issue:

  2. jenkins-infra-bot commented on May 4, 2017

    @jenkins-infra-bot
    Author
    scm_issue_link:

    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

  3. jenkins-infra-bot commented on May 4, 2017

    @jenkins-infra-bot
    Author
    scm_issue_link:

    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: c362bfc...43b06d5

  4. jenkins-infra-bot commented on May 7, 2017

    @jenkins-infra-bot
    Author
    danielbeck:
    • Original comment link
    • Raw content of original comment:

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions