Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-10340

Set relevant HTTP header on badges to manage caching issues

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2
    • Component/s: None
    • Labels:
      None

      Description

      To avoid excessive load, GitHub caches some asserts like badges used on README pages. It relies on some HTTP headers to control how to those assets are cached:

      [You must] make sure the image has the Cache-Control: no-cache header, and either Expires, Last-Modified or Etag.

      , reference: https://github.com/github/markup/issues/224

      SonarCloud badges should provide those headers somehow.

        Attachments

          Activity

            People

            • Assignee:
              eric.hartmann Eric Hartmann
              Reporter:
              fabrice.bellingard Fabrice Bellingard
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: