▲ | b_e_n_t_o_n 4 days ago | |||||||||||||||||||||||||
The cache headers are correct, you can't indefinitely cache those because they might change. Maybe you could get away with a short cache time but you can't cache them indefinitely like you can a javascript bundle. Not to mention on a more involved site, each page will probably include a variety of components. You could end up with deeper nesting than just 4, and each page could reveal unique components further increasing load times. I don't see much future in an architecture that inherently waterfalls in the worst way. | ||||||||||||||||||||||||||
▲ | riehwvfbk 3 days ago | parent [-] | |||||||||||||||||||||||||
There are cache times other than 0 and infinity. Ideally the XSLT would change rarely, as would things like nav menus. So "relatively short" could mean several minutes to an hour. And with ETags the resource could be revalidated before expiry and never have to be re-downloaded. | ||||||||||||||||||||||||||
|