How should I configure If-Modified-Since on database-driven pages?

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,690
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Aug 31, 2010

Following your interview with Eric Enge - you mention about "If Modified-Since." We worked on many websites whereby the actual file timestamp doesn't change but the content does as the pages are database-driven. How should we deal with such situations?

Tommo, London, UK

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • Actually, "If-Modified-Since" ist part of the client's request header and the server's response should be in the "Last-Modified" key.

  • Thanks for your wonderful answers in all videos. Really appriciated!

see all

All Comments (20)

Sign In or Sign Up now to post a comment!
  • This is a "tasteful" video. =p

  • This video went viral on Albania

  • great clip .. keep it up thanks

    

  • For a comprehensive tutorial with ready-to-use PHP code lookup Sebastian's Pamphlets, or query Google for [Save bandwidth costs: Dynamic pages can support If-Modified-Since too].

  • Yeah, what @NoirNG said.

  • @kron3r Nonono... the header your server is sending is Last-Modified. The request made by the client may be conditional: if the request contains the If-Modified-Since header AND the modification timestamps are equal (= no modification, since client has the current version), your server should respond with "304 Not Modified" and NOT send the body.

    If the condition is not met (= your server has different timestamp), the body is transferred as if no conditional request was made.

  • @kisvarosipari web-sniffer (DOT) net - Look for the Last-Modified header in the response. If it exists, click on the date. If it shows 304 Not Modified, then everything works perfectly.

  • how can we know wether or not our web page has if-modified-since so that we update it or it has not so that we let the google crawl it without changing it.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more