mardi 29 avril 2014

svn - Versioning CDN au niveau fichier - Stack Overflow


I was looking at Amazon.com and I noticed that their static files are versioned at the file level (example: s9-multipack-min.V171170235.js ) instead of the directory level.


Can you please provide some good practices on how to manage different versions at the file level and where is the best place to store what is the latest version for each file? We use SVN and our static files will be hosted on Amazon S3 CDN




You don't need to store multiple files at all. Just set up your rewrite module so it rewrites every /js/filename.vNNN.js to /js/filename.js.


As you can see the url


http://z-ecx.images-amazon.com/images/G/01/browser-scripts/us-site-wide-1.2.6/site-wide-11734552808.js._V169197_.js

points to actually the same content as


http://z-ecx.images-amazon.com/images/G/01/browser-scripts/us-site-wide-1.2.6/site-wide-11734552808.js._V169174097_.js

does. Note on the last changed part



I was looking at Amazon.com and I noticed that their static files are versioned at the file level (example: s9-multipack-min.V171170235.js ) instead of the directory level.


Can you please provide some good practices on how to manage different versions at the file level and where is the best place to store what is the latest version for each file? We use SVN and our static files will be hosted on Amazon S3 CDN



You don't need to store multiple files at all. Just set up your rewrite module so it rewrites every /js/filename.vNNN.js to /js/filename.js.


As you can see the url


http://z-ecx.images-amazon.com/images/G/01/browser-scripts/us-site-wide-1.2.6/site-wide-11734552808.js._V169197_.js

points to actually the same content as


http://z-ecx.images-amazon.com/images/G/01/browser-scripts/us-site-wide-1.2.6/site-wide-11734552808.js._V169174097_.js

does. Note on the last changed part


0 commentaires:

Enregistrer un commentaire