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

IResourceVersion should be based on final result

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.13.0, 7.0.0-M1
    • wicket
    • None

    Description

      MessageDigestResourceVersion generates a hash of the file content which will be used as the version. As of now this doesn't take transformations by CSS/JS compressors into account.

      This is problematic if you have a faulty compressor and your clients have already downloaded such a resource. By fixing the compressor you achieve nothing because the client happily keeps its faulty compressed version (by default for one year) as the hash didn't change. You either have to change the resource file (which is difficult for built in resources) or change the mapper path. The same holds true for other compressor improvements.

      This issue isn't really limited to only compressors. If a resource output isn't only based on the resource file input then a wrong hash will be generated. IResourceVersion should always make the decision on the final output.

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              cleiter Christoph Leiter
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: