Visa ett inlägg
Oläst 2009-11-22, 20:59 #6
MMCs avatar
MMC MMC är inte uppkopplad
Mycket flitig postare
 
Reg.datum: Jan 2008
Inlägg: 560
MMC MMC är inte uppkopplad
Mycket flitig postare
MMCs avatar
 
Reg.datum: Jan 2008
Inlägg: 560
Citat:
GET / HTTP/1.1
Host: www.snowmobile.se
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 200 OK
Date: Sun, 22 Nov 2009 19:36:54 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Wed, 18 Nov 2009 15:19:01 GMT
Accept-Ranges: bytes
Cache-Control: max-age=0
Expires: Sun, 22 Nov 2009 19:36:54 GMT
Keep-Alive: timeout=30, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

--- besök nr 2 ---

GET / HTTP/1.1
Host: www.snowmobile.se
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: ledenlastvisit=1258918615; ledenlastactivity=0
If-Modified-Since: Wed, 18 Nov 2009 15:19:01 GMT

HTTP/1.x 304 Not Modified
Date: Sun, 22 Nov 2009 19:37:38 GMT
Server: Apache/2.2.3 (CentOS)
Connection: Keep-Alive
Keep-Alive: timeout=30, max=100
Expires: Sun, 22 Nov 2009 19:37:38 GMT
Cache-Control: max-age=0
Din webbserver säger "Last-Modified 18 november", Firefox gör då en GET med "If-Modified-Since 18 november", på vilket din webbserver svarar "304 Not Modified". Alltså tycker den inte att / har ändrats sedan 18 november.

Det mest korrekta sättet att lösa det är väl att se till att ditt CMS eller vad det är du använder håller koll på Last-Modified-tider, men du kan ju också se till att Apache inte skickar Last-Modified och därmed undvika problemet (då får du istället sköta din cachning med Cache-Control etc.)
MMC är inte uppkopplad   Svara med citatSvara med citat