Comments (7)
Not possible at the moment, but it can be coded quite easily. The place to look at is API/WebExtensions.cs
. I believe you only have to modify UrlPattern
and update routing logic in AddCombresRoute
. If you can make a generic change, i.e. allow the pattern to be customizable in combres.xml, send me a PR.
from combres.
FWIW, including a query strings in the URL for static resources prevents certain proxies from caching the results.
I'd also venture to ask why you would need to invalidate the cache? If the content changes, the URL should change as well...
from combres.
The problem is that for Akamai, one of the biggest company on edge caching, to clean a url with query string takes 7 minutes to remove all the query string variations. and to clean a folder and all sub folders takes from 30-40 minutes. We know that combres does not generate a folder but if we want to clean all my js i have to clean /combres.axd/scripts/* what is considered all subfolders and if we need to clean all the variations for the url /combres.axd/scripts* is considered a unique url.
We need to clean the cache because some of our pages are cached on akamay and the url for the javascript is cached within the page. If we have to fix somenthing we have to clean the js url and the pages. Cleaning the pages in the middle of the day hurt our servers and penalize to much our performance.
If you try to use System.Web.Optimization for doing what combres does you will notice that it uses the query string approach.
Sorry for my english but it's not my native language.
from combres.
I think it's best if there's a config for this, something like:
<resourceSets url="~/combres.axd" useQueryString="on" />
I would love to receive PR.
from combres.
Hi, I've got a similar issue, but hoping there may already be a workaround.
I've got Combres running in a webforms project (with defaultVersion set to auto) and it's working great when running in IIS7, however, I get errors related to the query strings in IIS Express when in debug mode:
Invalid querystring value for parameter [].
The links are rendered as: /styles.css?4a3c443bec6d5101dfc043d528183347
I'm hoping to change the links to something like: /styles.css?v=4a3c443bec6d5101dfc043d528183347 which works fine in IIS Express
from combres.
What would really be helpful is an extension point that allowed for customization of the urls that are generated. Something along the lines of what I suggested in this work item: http://combres.codeplex.com/workitem/7678
from combres.
@buunguyen i think you idea would be great.
from combres.
Related Issues (20)
- Syncronization of last modified date on the response header. HOT 1
- Caching, versioning, and CDNs HOT 3
- Support mixing Less and CSS in the same resource set HOT 4
- WebExtensions.CombresLink("resourceSetName") throws System.ArgumentException and WildCard Support HOT 3
- change in files causes application pool restart HOT 1
- Update library dependencies HOT 5
- Combres can not minify AngularJs HOT 6
- Support all properties of Ajax Min
- Configs for YuiCssMinifier and YuiJSMinifier incorrect and cause exceptions HOT 1
- Custom css minifiers
- CombresHandler.ProcessRequest throwing ArgumentException with no discernible pattern. HOT 7
- dotLess strictMath mode not configurable HOT 4
- Nuget update HOT 1
- NuGet packages use strict dependency versions
- Calls to CombresLink are case sensitive - could this be changed? HOT 2
- combre 获取到的js版本内容是旧的,没有更新
- Failing to load resource set in v2.3.0.4 with .NET 4.5.2+ and MVC5 HOT 4
- Combres does not support ECMAScript2015 HOT 1
- transpile JS via babel before minifying
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from combres.