• Resolved Singh

    (@preetji)


    I really love the concept of “If-Modified-Since” and want to use it on my blog. It seems there aren’t many plugins/guides to enable it on WordPress based site but thankfully Clearfy has the option and got us covered.

    I enabled “Automatically insert the Last-Modified header ” and “Return an If-Modified-Since response” and Disabled Last-Modified header on the front page.

    I’ve stripped /tag/ /category/ from my website’s archives so I can’t exclude them using the plugin settings.

    Hence, the plugin is enabling the 304 response by default on the Tags, Categories pages too.

    For Example, a Category named “Android” on my website is https://www.example.com/android/ and it has 20 posts. I created a new article under this category and then checked the frontend.

    The homepage will display the new post because it’s excluded in the plugin settings to not utilize the Last Modified Header but the Category Page of Android will still display the 20 posts i.e the new post won’t be display on the Category or relevant tag archives.

    What might be the best solution if I want to enable this functionality on single articles only?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    To enable this feature only on certain pages, you need to add all the others to the exceptions. There are no other ways.

    Thread Starter Singh

    (@preetji)

    Thanks for your reply, Artem. Just like it doesn’t make sense to have the Last-modified header for the homepage, similarly, it doesn’t make sense to have the same header for Archive Pages too.

    So, I really feel there should be an option to enable it just for the article or provide some inbuilt option to disable it on Tags, Categories because there are millions of WP users like me who have Categories/Tags Base Removed on their WP sites and still, want to utilize the 304 functionality for the article pages.

    Still, just my two cents ??

    As of now, I will be using this particular code to implement If-modified-since for single pages, posts only…

    Thanks for this great plugin.
    Keep improving…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘If-Modified-Since Response Help’ is closed to new replies.