More specifically: to add a “far-future expiration date”.
I looked through the Plug Documentation, and it seems to me that it was supposed to be working as is. I tried dabbling with the gzip :true option just for the sake of it.
Apparently ($ curl -vI https://liberty.ai/images/logo-liberty-app@1x.png) the Max-Age is set to four hours (14400/60*60), is there any way to change it?
your assets will get ‘Cache-Control: public, max-age=31536000’ when they are served through the static plug (with digest)… so don’t worry about that
problem is to get your assets digested and that the layout/rendering uses the digested assets…
bit difficult to identify… check that you are running in PROD, npm/yarn is successful and cache_static_manifest is correct etc.
also debug directly on the heroku url, not through cloudflare.