Note that there are some explanatory texts on larger screens.

plurals
  1. POCloudfront loading old (css/js) files after rails deployment with capistrano
    primarykey
    data
    text
    <p>I'm using Amazon's Cloudfront CDN along with Rails for our app and I'm now encountering a strange issue that I can't track down.</p> <p>We store css and js files in Cloudfront and use the RELEASE value from capistrano in order to 'version' the files. (Method used here: <a href="http://stdout.wooswiff.com/2011/01/no-fuss-amazon-cloudfront-cdn-for-your.html" rel="nofollow">http://stdout.wooswiff.com/2011/01/no-fuss-amazon-cloudfront-cdn-for-your.html</a> )</p> <p>A typical path to a file is: <a href="http://assets1.ourhost.com/rel-20120117173438/assets/main.css" rel="nofollow">http://assets1.ourhost.com/rel-20120117173438/assets/main.css</a></p> <p>The '20120117173438' is our RELEASE value that Capistrano creates during the deployment.</p> <p>On deploy that RELEASE value is changed and then Cloudfront comes back to our app servers to get the new file. I've got some rewrite stuff going on server-side to ignore the RELEASE value in the path and serve up the currently existing file from the filesystem.</p> <p>The issue is this: on every deploy those RELEASE values are being updated correctly, so the sources being used to fetch the css and js files <em>is</em> being updated correctly, however, Cloudfront is serving us an older version of the file, from the previous deploy.</p> <p>The only way for the correct files to be sourced is for me to do a second deploy in order to change the RELEASE value yet again.</p> <p>The browser is not cacheing the files, so it's something going on with Cloudfront.</p> <p>Has anyone seen anything similar to this? I'd love some extra input on what to look for.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload