I heard that external css files can be cached by the browser, thus improving network performance.
My question is is this true?
Do cached CSS files really improve performance?
P粉0557261462024-02-04 00:08:24
In fact, browsers will try to cache CSS stylesheets (within limits) so that they are only fetched once and served on demand. This saves network bandwidth.
It can be assumed that CSS will not change much relative to the content of the website. Therefore, depending on the implementation, it is often ideal to separate style definition from content, especially if the design is for reusability.