• Resolved kinansy

    (@kinansy)


    Why it is recommended to exclude search pages ?

    For example: site.com/courses/category=Xcourses

    wouldnt adding a new course causes a purge in that url ?
    if yes, then we can cache it.

    same question for the 404 error page

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    same question for the 404 error page

    – You can cache 404 pages if you want but it is not recommended to ensure that lets say you have changed your post slug by mistake and then then old slug is giving 404 and then CF cache that. After that you fixed the slug issue but for users it might still give cached response. So, it depends on cache to case.

    Why it is recommended to exclude search pages ?

    – Cause search pages are generated dynamically based on the user search response. So, if you cache that page and then publish a new article, it might not show up on the search page unless you purge the whole cache.

    Thread Starter kinansy

    (@kinansy)

    search pages are generated dynamically based on the user search response. So, if you cache that page and then publish a new article, it might not show up on the search page unless you purge the whole cache.

    Wouldn’t this cause a purge for that page “Automatically purge the Cloudflare’s cache when something changes on the website” “Purge cache for related pages only – (recommended)”
    Purpose is: I don’t mind caching courses page for guest users until a new course is added

    Plugin Contributor iSaumya

    (@isaumya)

    Wouldn’t this cause a purge for that page “Automatically purge the Cloudflare’s cache when something changes on the website” “Purge cache for related pages only – (recommended)”

    – No. The relates pages are the archive pages not search and 404 pages as they can be vastly different based on your search team and how your search is configured.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search Pages and 404’ is closed to new replies.