Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5441

IResourceCachingStrategy implementations should only set caching if version matches

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.12.0, 7.0.0-M1
    • 6.13.0, 7.0.0-M1
    • None
    • None

    Description

      Implementations of IResourceCachingStrategy (FilenameWithVersionResourceCachingStrategy and QueryStringWithVersionResourceCachingStrategy) should only set cache duration to maximum if the version matches. Currently, if a user requests a resource with an arbitrary version, the version will be cached for one year (WebResponse.MAX_CACHE_DURATION). So people could polute proxy caches with potentially upcoming version.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            sfussenegger Stefan Fussenegger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: