Caching only the homepage and one other page

How do i cache only the homepage and one other page?

Hello! You can achieve this by creating Page Rules and Cache Rules.

The process for caching a specific page or set of pages can vary depending on the specific caching mechanism you are using. However, in general, the steps to cache only the homepage and one other page would be:

  1. Determine the caching mechanism you are using: If you are using a CMS like WordPress, there are various caching plugins available that you can use. If you are using a static site generator like Hugo or Jekyll, caching can be handled at the server level.
  2. Identify the pages to be cached: In this case, you would want to identify the homepage and the one other page you want to cache.
  3. Configure caching settings: Once you have identified the pages you want to cache, you will need to configure the caching settings for those pages. This will typically involve setting the cache-control headers to specify how long the content should be cached for.
  4. Test the caching: After configuring the caching settings, you should test the caching to ensure that it is working as expected. You can do this by accessing the cached pages and verifying that the cached content is being served.

Overall, the process for caching specific pages will depend on the specific caching mechanism you are using and the configuration options available. It’s always a good idea to consult the documentation.

please elaborate on that @hafsa

Please share the links from your research @hafsa

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.