Coder Social home page Coder Social logo

Change in the URL format about combres HOT 7 OPEN

buunguyen avatar buunguyen commented on May 30, 2024
Change in the URL format

from combres.

Comments (7)

buunguyen avatar buunguyen commented on May 30, 2024

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.

ericberens avatar ericberens commented on May 30, 2024

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.

MiguelTVMS avatar MiguelTVMS commented on May 30, 2024

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.

buunguyen avatar buunguyen commented on May 30, 2024

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.

CombresForWebForms avatar CombresForWebForms commented on May 30, 2024

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.

dplaskon avatar dplaskon commented on May 30, 2024

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.

MiguelTVMS avatar MiguelTVMS commented on May 30, 2024

@buunguyen i think you idea would be great.

from combres.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.