Stijn Niclaes created WICKET-5838: ------------------------------------- Summary: Last-modified header of external markup is ignored Key: WICKET-5838 URL: https://issues.apache.org/jira/browse/WICKET-5838 Project: Wicket Issue Type: Bug Components: wicket Affects Versions: 1.5.12 Reporter: Stijn Niclaes
When using external base markup(in my case a drupal page with a wicket:child element in it) this markup is supposed to be cached after first fetch. For subsequent requests the last-modified header is checked to see if the markup has changed and when it has the markup is fetched again. This does not work, Connections.getLastModified(URL url) always returns 0 when the URL is a http url(in fact, when url.openConnection returns a sun.net.www.protocol.http.HttpURLConnection. Solution could be to not setDoInput to false on this URLConnection(tested that) -- This message was sent by Atlassian JIRA (v6.3.4#6332)