Hi, The field is set to false because Wicket doesn't write anything to the connection. It just reads from it.
Reading the beginning of your message I thought that your base pages need to implement org.apache.wicket.markup.IMarkupCacheKeyProvider and override #getCacheKey() to return null. Try it! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Feb 17, 2015 at 10:28 AM, Stijn Niclaes <[email protected]> wrote: > Hi all, > > We have 4 basePages for which the markup resides in a drupal site(created a > ResourceStreamLocator extension for that). All our other pages extend from > these. > > Now the problem is that these basePages get cached and the cache does not > get invalidated. > We get the up-to-date last-modified header from drupal but wicket seems to > simply ignore it. > > Issue lies in Connections class: the static method getLastModified(URL url) > creates a URLConnection, but then calls setDoInput(false) before calling > connection.getLastModified(). > URLConnection.getLastModified always returns 0 when doInput is set to > false, no connection is even set up when doInput is false. > > Why is this doInput field set to false? > > We use Wicket 1.5.12. > > Kind regards, > > Stijn Niclaes >
