Wicket
  1. Wicket
  2. WICKET-1602

Wicket resources - wicket is requesting resources every 1 hour

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.3
    • Fix Version/s: 1.5-M2.1
    • Component/s: wicket
    • Labels:
      None

      Description

      There is a problem with wicket ajax javascripts - there are reloading by browser every 1 hour, because the Expire header
      is hardcoded to 3600 seconds in WebResource#setHeaders() method.

      This problem bubbles up to commonly used class ResourceReference class, which internally works
      with PackageResource that uses our problematic class - WebResource.

      SIMPLE AND FAST SOLUTION
      ----------------------------------------------
      The only thing, that is needed to fix this, is to change WebResource#setHeaders() to take
      the caching time from some wicket settings, so it is not hardcoded and can be configured by developer.

      NABBLE about this problem:
      ----------------------------------------------------------------
      http://www.nabble.com/forum/ViewPost.jtp?post=17117009&framed=y

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Peter Ertl
            Reporter:
            Stefan Simik
          • Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development