Uploaded image for project: 'GeoServer'
  1. GeoServer
  2. GEOS-7895

Add cache-control and etag to capabilities request

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.4, 2.10.1
    • Component/s: None
    • Labels:
      None

      Description

      Will add the following:

      Cache-control: max-age=0, must-revalidate;
      Etag: ....
      

      The first line will make sure clients following HTTP spec won't cache the capabilities document (newer versions of QGIS are apparently doing it and tripping over newly added layers), while the second will help clients that can perform a HTTP conditional request to avoid reloading (and make GeoServer recompute) the caps document when nothing changes.

      The etag is going to be computed as a combination of the last reload/start plus the update sequence, which is modified at any configuration change.

        Attachments

          Activity

            People

            • Assignee:
              aaime Andrea Aime
              Reporter:
              aaime Andrea Aime
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: