Shouldn't I be getting getting 304 response headers instead of 200 from the tag below? Sometimes the 200 response loads <1ms, sometimes 16ms. Seems very random.
Shouldn't I be getting getting 304 response headers instead of 200 from the tag below?
No, you shouldn't be getting any response, the client shouldn't ask for the bundle again. Altho a 304 is much better than a 200, it's still a round trip. This is a known issue that should be fixed soon. You can update the bundling/minification via NuGet
- hopefully before the next MVC 4 prerelease.
claurin
Member
5 Points
4 Posts
MVC4 Bundling getting 200 response headers
Mar 09, 2012 05:11 PM|LINK
Shouldn't I be getting getting 304 response headers instead of 200 from the tag below? Sometimes the 200 response loads <1ms, sometimes 16ms. Seems very random.
<script src="@BundleTable.Bundles.ResolveBundleUrl("~/jsBundle")" type="text/javascript"></script>
claurin
Member
5 Points
4 Posts
Re: MVC4 Bundling getting 200 response headers
Mar 09, 2012 05:20 PM|LINK
I should mention that the above resolves to:
<script src="/jsBundle?v=Mlv8-6LYEspFUWHbZUIOvbbrj1meVjHYL6ohJ5s2hs01" type="text/javascript"></script>
ricka6
All-Star
15070 Points
2272 Posts
Microsoft
Moderator
Re: MVC4 Bundling getting 200 response headers
Mar 09, 2012 05:35 PM|LINK
No, you shouldn't be getting any response, the client shouldn't ask for the bundle again. Altho a 304 is much better than a 200, it's still a round trip. This is a known issue that should be fixed soon. You can update the bundling/minification via NuGet - hopefully before the next MVC 4 prerelease.
claurin
Member
5 Points
4 Posts
Re: MVC4 Bundling getting 200 response headers
Mar 09, 2012 05:53 PM|LINK
Thank you.
claurin
Member
5 Points
4 Posts
Re: MVC4 Bundling getting 200 response headers
May 08, 2012 12:13 PM|LINK
Is there an update to system.web.optimization coming soon?
ricka6
All-Star
15070 Points
2272 Posts
Microsoft
Moderator
Re: MVC4 Bundling getting 200 response headers
May 08, 2012 05:40 PM|LINK
The next release will be an RC that roughly coincides with the Win8/Dev11 Release Preview release - ~ 1st week of june