DEV Community

Discussion on: SPAs: Have Your Cache And Eat It Too

Collapse
 
anduser96 profile image
Andrei Gatej

It makes sense now. So to make sure that I understood, the server is who sets the cache headers for other files(*.js, *.css etc). Whereas the meta tags are used to set the headers on the index file.
Did I get it right?

Thread Thread
 
jamesthomson profile image
James Thomson

Correct on the first part, but meta isn’t needed for the index. You set control-headers for the index as well.

Thread Thread
 
anduser96 profile image
Andrei Gatej

Ok. Thanks!