weavejester / ring-webjars

Ring middleware to serve assets from WebJars
36 stars 4 forks source link

Also serve webjar with exact lib version in the request path #10

Closed jpbackman closed 1 month ago

jpbackman commented 3 years ago

Adds possibility to request the webjar contents with the lib version in the request path.

Previously contents could be requested only with:

With this PR contents can be requested with:

Rationale: proxy/cache busting. Ensure that the browser doesn't find a match in the cache when a webjar version is bumped since the request URI changes if it includes the lib version.

jpbackman commented 3 years ago

@weavejester I've minimised the changes and added a note of this change in the README. How does it look now?