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

    Join Date
    May 2017
    Posts
    7
    Rep Power
    0

    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
    Moderator
    SEO Chat Super Hero (2500 - 2999 posts)

    Join Date
    Sep 2016
    Location
    USA
    Posts
    2,572
    Rep Power
    3194
    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.

    Code:
    # 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"
    </filesMatch>
    
    # 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, 04:34 PM
  2. "Last-modified" http header
    By firebook23 in forum Google Optimization
    Replies: 4
    Last Post: Dec 2nd, 2011, 10:36 PM
  3. Google guidelines for "If-Modified-Since HTTP header"
    By Alfie in forum Google Optimization
    Replies: 0
    Last Post: Nov 29th, 2005, 11:23 AM
  4. If-Modified-Since http header
    By roni in forum Google Optimization
    Replies: 16
    Last Post: Jun 8th, 2003, 03:37 PM

IMN logo majestic logo threadwatch logo seochat tools logo