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

Update cache policy for static assets

    XMLWordPrintable

    Details

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

      Description

      Files served from /js, /css and /images urls don't have a proper cache policy:

      Since the files are suffixed with their content hash, the cache should never be invalidated. So the max-age can be set to a maximum possible value.

      See more: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching#cache-control

        Attachments

          Activity

            People

            Assignee:
            julien.lancelot Julien Lancelot
            Reporter:
            stas.vilchik Stas Vilchik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: