Sprockets max-age header on heroku Sprockets max-age header on heroku heroku heroku

Sprockets max-age header on heroku


Are you pressing Command + R or Ctrl + R? The browser refresh button intentionally re-checks the freshness of its assets. It assumes you're hitting refresh because something didn't function properly on the page.

If you want to test the headers, visit the page once and then focus the location bar and press Enter to visit it a second time. The assets should come from the cache.