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

Disable caching for particular resources.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.5, 6.0.0-beta1
    • 6.0.0-beta2
    • wicket
    • None

    Description

      Currently it is possible to disable resources versioning by :
      getResourceSettings().setCachingStrategy(NoOpResourceCachingStrategy.INSTANCE);

      Unfortunately this disables caching for every resource, it would be nice to disable caching for particular (package) resource, something like:
      PackageResourceReference res = new PackageResourceReference(....);
      res.setCashable(false);

      Caching in general is good think but some javascript libraries get broken when filenames are modified with "ver..." token.

      Regards

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            pete Peter Ertl
            dlipski Daniel Lipski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment