web-optimization

Mixing Secure and Non-Secure Content on Web Pages - Is it a good idea?

血红的双手。 提交于 2019-12-10 03:14:55
问题 I'm trying to come up with ways to speed up my secure web site. Because there are a lot of CSS images that need to be loaded, it can slow down the site since secure resources are not cached to disk by the browser and must be retrieved more often than they really need to. One thing I was considering is perhaps moving style-based images and javascript libraries to a non-secure sub-domain so that the browser could cache these resources that don't pose a security risk (a gradient isn't exactly

“The located assembly's manifest definition does not match the assembly reference” on nuget package

烈酒焚心 提交于 2019-12-07 06:08:53
问题 So I was persistently getting this error on the System.Web.Optimization package Could not load file or assembly 'System.Web.Optimization' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 回答1: I finally found the solution after much trying. The key was in the Assembly load trace. LOG: Redirect found in application configuration file: 1.0.0.0 redirected to 1.1.0.0. Here are the steps I took to

Google Web Optimizer — How long until winning combination?

醉酒当歌 提交于 2019-12-06 09:45:30
I've had an A/B Test running in Google Web Optimizer for six weeks now, and there's still no end in sight. Google is still saying: "We have not gathered enough data yet to show any significant results. When we collect more data we should be able to show you a winning combination." Is there any way of telling how close Google is to making up its mind? (Does anyone know what algorithm does it use to decide if there's been any "high confidence winners"?) According to the Google help documentation: Sometimes we simply need more data to be able to reach a level of high confidence. A tested

What is the proper use of IItemTransform for correcting paths in CSS Bundling with ASP.NET Web Optimization and BundleTransformer?

安稳与你 提交于 2019-12-06 02:46:33
问题 I'm presently working on a project that uses the ASP.NET Web Optimization library (v 1.1.0-Beta1) in conjunction with the Bundle Transformer extension (v 1.7.3-Beta1 for core, 1.7.0-Beta1 for LESS) which is used to convert LESS into CSS. Based on web searches paths within CSS (and less) appear to be a common issue, in most cases it is recommended to manually modify the CSS and be done with it. However, due to differences between our development and production environment, and not owning the

Setting Far Future Expires Header In Code - ASP.NET

被刻印的时光 ゝ 提交于 2019-12-06 02:03:45
问题 Is there a way that I can Programmatically set an Expires Header in code with ASP.NET? Specifically I need to set it on an entire folder and all sub-folders, and the folder contains only static files (JavaScript, CSS, Images etc.) and not aspx files, so I can't just add some code to an aspx code-behind page_load. I can normally set this directly in IIS. But the server is locked down by the client (I only have FTP access to web app directory for deployments), and getting the client to set the

<webopt:BundleReference> renders ScriptBundle as css link elements

跟風遠走 提交于 2019-12-05 11:33:54
I'm trying to use the new .net 4.5 webforms control to render bundles in my materpage. I have a scriptbundle defined in my BundleConfig.cs like this: bundles.Add(new ScriptBundle("~/bundles/app").Include( "~/Scripts/underscore.js", "~/Scripts/backbone.js", "~/Scripts/app/app.js", "~/Scripts/app.validator.js", "~/Scripts/app/views/home.js", "~/Scripts/app/views/about.js", "~/Scripts/app/views/contact.js", "~/Scripts/app/controls/hello.js", "~/Scripts/app/init.js")); I then try to render the bundle using the new <webopt:BundleReference> control: <webopt:BundleReference ID="AppBundle" runat=

“The located assembly's manifest definition does not match the assembly reference” on nuget package

送分小仙女□ 提交于 2019-12-05 09:32:43
So I was persistently getting this error on the System.Web.Optimization package Could not load file or assembly 'System.Web.Optimization' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) I finally found the solution after much trying. The key was in the Assembly load trace. LOG: Redirect found in application configuration file: 1.0.0.0 redirected to 1.1.0.0. Here are the steps I took to resolve the issue. It might be possible to skip some of these but this worked for me: Uninstall the nuget

Is there a way to update asp.net mvc bundle contents dynamically at run-time?

a 夏天 提交于 2019-12-05 03:55:15
I'm ASP.NET MVC v4 for my application, and I'm using the web optimization features (bundling and minification of scripts and styles). Now, what I understand is (please correct me if wrong), the optimization framework will look at the included files at the time of compilation and configure them. It'll create a version number (v=something) based on the contents. Every time the contents change, it'll recreate the version hash, and the client will get updated files. Now, is there a way to get the following done [1] Update something inside a js file in my server, and serve the updated one to the

What is the best way to optimize a Windows Server 2008 box running IIS7 to serve only static files?

旧时模样 提交于 2019-12-05 02:50:14
问题 I would like to have our web applications pull static content (css, js, images) from a static file server running Windows Server 2008 and IIS7. What sort of optimizations would you make to the server for this single purpose? (Machine.config changes? Web.config changes? Special IIS7 setup or modules? What?) 回答1: Some advices: Enable gzip compression: http://blogs.msdn.com/vivekkum/archive/2009/02/18/http-compression-in-iis-6-and-iis-7-using-service-account.aspx Set Cache-Control: max-age to

Setting Far Future Expires Header In Code - ASP.NET

两盒软妹~` 提交于 2019-12-04 07:36:32
Is there a way that I can Programmatically set an Expires Header in code with ASP.NET? Specifically I need to set it on an entire folder and all sub-folders, and the folder contains only static files (JavaScript, CSS, Images etc.) and not aspx files, so I can't just add some code to an aspx code-behind page_load. I can normally set this directly in IIS. But the server is locked down by the client (I only have FTP access to web app directory for deployments), and getting the client to set the Expires Header on IIS would take an ice age (it's a public sector/government site). I'm doing this for