I noticed that the HTTP response includes the cache-control header, and it's set to
I also noticed that any files within /layouts has the same header set to
max-age=31536000. I would really appreciate if I could have my JS and CSS files using this value for the cache-control header.
This is a SharePoint Online hosted solution, by the way, so I don't have access to IIS. Is there anyway I can instruct SharePoint to serve specific files, or files within a specific folder, with a custom value for the cache-control header? Site or site collection policies, extra tags on the page or master page, code-behind in a webpart... I am willing to try anything. I just have been googling for this for quite a while now and I am yet to find anyway to set that header by hand.
Edit: I set up a meta tag in the master page like this:
<meta http-equiv="Cache-control" content="public,max-age=31536000">
In Chrome dev tools I can see the tag just like that in the source code, but the http response still comes indicating a value of
private, max-age=0. Am I doing something wrong?