Questions tagged [web-optimization]

The ASP.NET Web optimization framework provides services to improve the performance of your ASP.NET Web applications.

The ASP.NET Web optimization framework provides services to improve the performance of your ASP.NET Web applications.

Current services provided by the framework include:

  • bundling - combining multiple scripts or style resources together into a single resource, and thereby requiring browsers to make fewer HTTP requests
  • minification - making scripts or styles smaller using techniques such variable name shortening, white space elimination, etc.

Additionally, the framework has multiple extensibility points, enabling you to add new services over time. The easiest way to install the framework is via its NuGet package.

86 questions
1
vote
1 answer

How to cache AngularJs *.js files

I'm building quite big Angular application. I have some problems with caching *.js files. Every time route is changed, all *.js files are downloaded. I know I should join all js files and minimize them, but first I want figure following…
Matjaž
  • 2,096
  • 3
  • 35
  • 55
1
vote
1 answer

Is this page caching system reasonable?

I am working on a webbased system where users will click through a lot of pages. Because they will often return to specific pages (for example, an overview of books), I would like to implement some caching mechanism to speed things up. Before I show…
PeerBr
  • 675
  • 1
  • 11
  • 26
1
vote
0 answers

MVC Bundling and Azure CDN caching issues

In a current .NET webproject with ASP.NET MVC 5.2 and WebAPI 2.2, we encounter some strange troubles with minification and bundling in local/production environments. For local development, we won't use bundling and minification, so we created a…
PJDW
  • 145
  • 1
  • 4
  • 15
1
vote
1 answer

Google Web Optimizer (A/B Testing) Why no clear winner?

I've previously asked how long it takes for a winning combination to appear on Google's Web Optimizer, but now I have another weird problem during an A/B test: For the past two days has Google announced that there was a "High Confidence Winner"…
Chuck Le Butt
  • 47,570
  • 62
  • 203
  • 289
1
vote
1 answer

Get access to the URL's being used in System.Web.Optimization

Background: I'm using the HTML 5 Offline App Cache and dynamically building the manifest file. Basically, the manifest file needs to list each of the static files that your page will request. Works great when the files are actually static, but I'm…
1
vote
1 answer

Unable to minify css in asp.net mvc

I am trying to minify a css file using System.Web.Optimizations and it won't work var fontAwsomeBundle = new Bundle("~/bundles/css/font-awsome", new CssMinify()) .Include("~/content/packages/font-awesome/css/font-awesome-{version}.css", new…
Syam
  • 1,629
  • 1
  • 20
  • 32
1
vote
0 answers

Do not minify one file in a bundle

I have several files that I want to include in a bundle using Web Optimizations but one of the files is currently breaking after minification. Is there a way to include that file in the bundle un-minified while still having all the other files be…
webwires
  • 2,572
  • 3
  • 26
  • 44
1
vote
2 answers

Understanding ASP.NEt MVC Script Bundling path specification

So I am working on learning how to use the script bundling utility in MVC and I have one problem - I don't quite get how to structure the virtual path for each of my ScriptBundle objects. For instance, when using the constructor which allows one to…
user272671
  • 657
  • 4
  • 13
  • 26
1
vote
1 answer

Web Optimization conditional for browsers

I'm doing bundling and minification using Microsoft's Web Optimization infrastructure. How can I set up to deliver different content depending on the browser? I want behaviour similar to conditional CSS files in the absence of bundling: