1

I have a partial where I store website icons: touch icon, favorites icon, Android/Apple icons, like 25 of them.

These icons change rarely close to never. I keep them all in S3 with CloudFront on top. I don't want to move them to /public/icons as I'd have to go around ActiveStorage everytime I run into something like this.

This partial takes like 200ms to render.

How do I cache this for like, forever, as the URLs to the icons expire after 5 minutes or so? Is there still no way to get a permanent URL to the asset from Rails?

Nick M
  • 2,424
  • 5
  • 34
  • 57

0 Answers0