About my cache - control header

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • simon2x1
    New Member
    • Dec 2008
    • 123

    About my cache - control header

    below is my HTTP header i want to know am i to put pass year or furture year in the Expires, date, and Last-Modified and if its furture year i was told it must not be more than one year secondly am i to update the year after the year have expire and thridly what is the different between Content-Type: text/html and Content-Type: image/gif or are they the same and lastly where will i put my http bacause when i put between the head tag <head></head> it will show in the broswer. while explaining you can also edit my http to show me

    Code:
    HTTP/1.1 200 OK
    Date: Fri, 30 Oct 2010 13:19:41 GMT
    Server: Apache/1.3.3 (Unix)
    Cache-Control: max-age=3600, must-revalidate
    Expires: Fri, 30 Oct 2010 14:19:41 GMT
    Last-Modified: Mon, 29 Jun 2010 02:28:12 GMT
    ETag: "3e86-410-3596fbbc"
    Content-Length: 1040
    Content-Type: text/html
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Originally posted by simon2x1
    below is my HTTP header i want to know am i to put pass year or furture year in the Expires,
    if the expires value is in the past, then obviously the file is outdated

    Originally posted by simon2x1
    date, and Last-Modified
    last modified in the future? doesn’t make sense, eh?

    Originally posted by simon2x1
    what is the different between Content-Type: text/html and Content-Type: image/gif or are they the same
    see MIME-Type. it’s like the difference between “this is a door” and “this is a dog”

    Originally posted by simon2x1
    and lastly where will i put my http bacause when i put between the head tag <head></head> it will show in the broswer.
    the data you have shown are HTTP/1.x data, thus they are sent by the server (HTML uses the <meta> elements for that)

    Comment

    Working...