Add an extension point for url creation


There are many great extension points in combres and I'd like to suggest that url creation be an area where this is considered. I recently moved to a new cdn provider that required file extensions to be added to the combres-generated js and css files to ensure that content types were required, which is what prompted me to create this ticket.

This could potentially eliminate the need for having the host and sslHost settings as well, as you could easily append any host name needed with the context of such an extension point.

I'm sure there are quite a few other uses that aren't coming to mind immediately.

Keep up the great work Buu!


adardesign wrote Apr 29, 2013 at 4:48 AM

Do you mean something like this?
path/to/combresResource?resources=resourceID1,resourceID2,resourceID3 which would generate (minify uglify etc.) all required resources?

dplaskon wrote May 7, 2013 at 6:24 PM

No, I mean something akin to a transformer extension point for urls.

For example, you get as input:

1) The name of the set to be created
2) The type of set to be created (eg. js vs css)
3) The hash for the set to be created
4) Access to the httpcontext and/or other interesting contextual information.

And, as output, you provide the final url that combres will use for a given resource set.