Mobile app version of vmapp.org
Login or Join
Courtney195

: What's the best way to version CSS and JS URLs - part 2 This is a follow up question on the following question What's the best way to version CSS and JS URLs Both of the solutions mentioned

@Courtney195

Posted in: #CacheControl #StaticContent #WebDevelopment

This is a follow up question on the following question
What's the best way to version CSS and JS URLs

Both of the solutions mentioned there would require modification to the files where the css and js file URLs are mentioned. So in effect it would require a restart of the application server after making the changes.

Is there a better way, where versioning of static files can be handled without having to restart the Application server ?

the following is ruled out in the solution


changing the css and js filenames
passing a query paremeter in the url
the solution also should not affect setting cache-control or expires.


thanks

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Courtney195

1 Comments

Sorted by latest first Latest Oldest Best

 

@Holmes151

Google's Apache module mod_pagespeed will automatically add a hash of the file to the path, to prevent old versions from the cache being used.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme