mwrock / RequestReduce

Instantly makes your .net website faster by reducing the number and size of requests with almost no effort.
www.requestreduce.org
Apache License 2.0
228 stars 49 forks source link

Expected Mime Type on all files #233

Open nathanloehlein opened 11 years ago

nathanloehlein commented 11 years ago

Exception #3: RequestReduce expected url 'https://engage.dev.vertafore.com/EngageDevClientPortal/Scripts/JQuery/jquery-1.7.2.min.js' to have a mime type of 'text/javascript or application/javascript or application/x-javascript'. Stack Trace#3: at RequestReduce.Utilities.WebClientWrapper.Download(String url, IEnumerable1 requiredMimeTypes) in c:\RequestReduce\RequestReduce\Utilities\WebClientWrapper.cs:line 79`

I'm getting this error for all css and js files (adding / removing them simply changes which one reports the error). Here are the response headers I'm getting from the server

Accept-Ranges:bytes Cache-Control:public,max-age=15552000 Content-Length:94840 Content-Type:application/x-javascript Date:Tue, 22 Jan 2013 22:21:53 GMT ETag:"ead79190a0d1cd1:0" Last-Modified:Mon, 03 Dec 2012 21:53:01 GMT Server:Microsoft-IIS/7.5 X-Powered-By:ASP.NET

Installed RR via NuGet. We have it running fine on a separate project. I've tried changing cache settings etc and it has had no effect.

Any help would be appreciated.