1. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    May 2017
    Rep Power

    Smile Should I change Last-Modified header if there are new comments?

    I am creating article blog and think a lot about SEO. The question is how should and what headers should I send.

    If the article is changed, okey, I am changing Last-Modified header. But what if there are new comments to article, should I change header? Or search engines will not scan my web page again due to old Last-Modified header?

    Also, is it okey to use both Last-Modified and ETag and Expires or choose one?
  2. #2
  3. No Profile Picture
    SEO Chat Scholar (3000 - 3499 posts)

    Join Date
    Sep 2016
    Rep Power
    Don't worry about etags and the last modified header so much.

    Yes it is ok to use both but why is my question. The way I handle cache controls is as follow. It works well and solves many issues.

    Here is last 10 lines of code of the htaccess file I put on every linux server / site I manage.
    I generally set most site to 2 weeks. This can be adjusted for each site.

    # cache control section
    # set for two weeks max 14 days (60sec * 60min * 24hours * 14days = 1209600 secs)
    <filesMatch ".(css|jpg|jpeg|png|gif|js|ico|php|html)$">
    Header set Cache-Control "max-age=1209600, public"
    # Turn off etags
    Header unset Etag
    FileETag none

Similar Threads

  1. Last-Modified header: amletic doubt
    By willsmith7 in forum New User SEO Questions and Answers
    Replies: 0
    Last Post: Mar 20th, 2017, 03:34 PM
  2. "Last-modified" http header
    By firebook23 in forum Google Optimization
    Replies: 4
    Last Post: Dec 2nd, 2011, 09:36 PM
  3. Google guidelines for "If-Modified-Since HTTP header"
    By Alfie in forum Google Optimization
    Replies: 0
    Last Post: Nov 29th, 2005, 10:23 AM
  4. If-Modified-Since http header
    By roni in forum Google Optimization
    Replies: 16
    Last Post: Jun 8th, 2003, 02:37 PM

IMN logo majestic logo threadwatch logo seochat tools logo