Connecting Tech Pros Worldwide Help | Site Map

About my cache - control header

Member
 
Join Date: Dec 2008
Posts: 80
#1: Oct 9 '09
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

Expand|Select|Wrap|Line Numbers
  1. HTTP/1.1 200 OK
  2. Date: Fri, 30 Oct 2010 13:19:41 GMT
  3. Server: Apache/1.3.3 (Unix)
  4. Cache-Control: max-age=3600, must-revalidate
  5. Expires: Fri, 30 Oct 2010 14:19:41 GMT
  6. Last-Modified: Mon, 29 Jun 2010 02:28:12 GMT
  7. ETag: "3e86-410-3596fbbc"
  8. Content-Length: 1040
  9. Content-Type: text/html
  10.  
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#2: Oct 9 '09

re: About my cache - control header


Quote:

Originally Posted by simon2x1 View Post

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

Quote:

Originally Posted by simon2x1 View Post

date, and Last-Modified

last modified in the future? doesn’t make sense, eh?

Quote:

Originally Posted by simon2x1 View Post

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”

Quote:

Originally Posted by simon2x1 View Post

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)
Reply