You're developing a news website where the content is updated every few minutes. Which caching strategy would be most appropriate to ensure users always see the latest content?
- a) Browser Caching: The browser caches content for a short duration.
- b) Content Delivery Network (CDN) Caching: Cached content is distributed globally.
- c) Server-Side Caching: Caches content on the server and serves it to users.
- d) Long-Term Caching: Content is cached for an extended period.
For a news website with rapidly changing content, browser caching (option a) is not ideal because it may lead to users seeing outdated content. The best option is to use Server-Side Caching (option c), which allows you to control and update the cache frequently, ensuring users receive the latest content. CDN caching (option b) and long-term caching (option d) are more suitable for static content with less frequent updates.
Loading...
Related Quiz
- Which third-party service is primarily used for user authentication and comes with built-in social media login options?
- In MobX, the ________ decorator can be used to mark a method that intends to modify the state.
- Which of the following best describes the purpose of the render method in class components?
- What is the primary benefit of using the Context API in React?
- The main advantage of using HOCs is to promote ________ in React applications.