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

Calling WebResponse#enableCaching() is insufficient to enable caching on WebPage (which by default is non-cacheable)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.4, 6.0.0-beta1
    • 1.5.5, 6.0.0-beta1
    • wicket

    Description

      WebResponse.enableCaching() is documented to enable caching, but it does not. You must also override WebPage.setHeaders(), otherwise it clobbers the headers by calling disableCaching().

      The API docs for WebResponse.enableCaching() should be clear about this.

      Attachments

        Activity

          People

            pete Peter Ertl
            mcallan Michael Allan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: