How should I configure If-Modified-Since on database-driven pages?
Top Comments
All Comments (20)
-
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.
Actually, "If-Modified-Since" ist part of the client's request header and the server's response should be in the "Last-Modified" key.
theylmdl 1 year ago 14
Thanks for your wonderful answers in all videos. Really appriciated!
lillmii3o 1 year ago 5