简体   繁体   中英

Do websites with dynamic content actually need to stop browser caching?

We always add nocache to our meta headers when dealing with dynamic content, but now that we're using html5, the old nocache meta tags are now invalid and we'll need to handle it via php headers. This got me thinking, why exactly do we even need to?

Static content can be cached, stuff like images, document and fonts.

Dynamic content should not be cached, since that would present outdated views to the user.

Note, that a page always contains lots of static stuff alongside the little dynamic content.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM