Curious why this VuePress site's assets are not cached

Hello

I recently migrated a site to VuePress to be archived for all time. One thing I am noticing is that the assets folder is not caching properly. You can see the pagespeed results here: https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fisna.org%2F&tab=mobile

I have created a _headers file in the vuepress public folder with the following contents:

/img/*
Cache-Control: public, s-max-age=31536000
/files/*
Cache-Control: public, s-max-age=31536000
/pdf/*
Cache-Control: public, s-max-age=31536000
/.css
Cache-Control: public, s-max-age=31536000
/
.js
Cache-Control: public, s-max-age=31536000
/assets/css/*
Cache-Control: public, s-max-age=31536000
/assets/js/*
Cache-Control: public, s-max-age=31536000

Not sure why it isn’t caching the css and js files though. All the images and pdfs are cached fine now after adding that file. You can checkout the site here https://isna.org/

Thank you in advance.

Hi, @labboy0276, I see the custom header in 200 responses, but not 304 responses. This is the same issue as in this topic below:

I have added this topic to the issue tracking and we’ll follow-up in both places if/when the issue is resolved.