Fixed with https://issues.apache.org/jira/browse/WICKET-4119
On Wed, Oct 12, 2011 at 11:49 AM, Kalle Rannikko <kalle.ranni...@syncrontech.com> wrote: > Hi all, > > We are trying to migrate wicket from version 1.4.8 to 1.5.1. While other > browsers work fine, IE9 has issue with linking CSS-files > (http://blogs.msdn.com/b/ie/archive/2010/10/26/mime-handling-changes-in-internet-explorer.aspx). > To fix this, Content-Type: text/css must be returned for CSS-files. Is there > a way to do that? > > The original link in html file is: > > <link href="themes/main.css" rel="stylesheet" type="text/css"/> > > And the error in IE9 console (using IE9 native mode): > > SEC7113: CSS was ignored due to mime type mismatch > main.css?-royalblue&ver=408E40DEC658C9BFBC0B666CFBB1BB0B<0> > > -royalblue is a style setting and actual file referenced is > main_royalblue.css. > > With QueryStringWithVersionResourceCachingStrategy this almost works but > AbstractResource.setResponseHeaders(...) could not get content-type. For > CSS-files both filename and contentType are not set while > AbstractResource$ResourceResponse.getContentType() needs at least filename to > use Application.getMimeType() for finding correct contentType. > > Regards, > Kalle Rannikko > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org