Closed evangipson closed 6 years ago
I fixed this outside of the repo on my server by modifying my .htaccess file with this line:
# 12 hours for static assets
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico|html|svg|php)$">
Header set Cache-Control "max-age=43200, public"
</filesMatch>
I put this in my evangipson.com root, so it also applies to all the other projects in that subdomain, including midio.
Verified working here:
Expected Behavior
When a user comes to midio, they should always be served the freshest copy of "production ready" (or on master) javascript & css.
Actual Behavior
Users get cached JS or CSS sometimes, because I'm not setting any caching stuff on my end as far as I know. This would be through bluehost. Apparently I can use an .htaccess file... but I feel like that will be a lot of work.
Steps to Reproduce the Problem
Specifications