Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 19, 2008, 11:12:18 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Strange HTTP Last-Modified behaviour  (Read 1666 times)
skye
Newbie
*
Offline Offline

Posts: 2


« on: March 28, 2008, 05:19:12 PM »

Any idea why every time I fetch a static image from my host, the Last-Modified: date keeps changing?  It's causing browsers to refresh everything on the page every time they visit.

Example:

sh-3.2$ curl -lI http://www.treeleaf.org/images/goldenJimdo.jpg
HTTP/1.1 200 OK
Date: Sat, 29 Mar 2008 00:06:44 GMT
Server: Apache/1.3.41 (Unix) mod_fastcgi/2.4.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Last-Modified: Sat, 29 Mar 2008 00:06:44 GMT
ETag: W/"56f49ac-7ffc-47ed9df7"
Accept-Ranges: bytes
Content-Length: 32764
Content-Type: image/jpeg

sh-3.2$ curl -lI http://www.treeleaf.org/images/goldenJimdo.jpg
HTTP/1.1 200 OK
Date: Sat, 29 Mar 2008 00:06:45 GMT
Server: Apache/1.3.41 (Unix) mod_fastcgi/2.4.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Last-Modified: Sat, 29 Mar 2008 00:06:45 GMT
ETag: W/"56f49ac-7ffc-47ed9df7"
Accept-Ranges: bytes
Content-Length: 32764
Content-Type: image/jpeg

sh-3.2$ curl -lI http://www.treeleaf.org/images/goldenJimdo.jpg
HTTP/1.1 200 OK
Date: Sat, 29 Mar 2008 00:06:46 GMT
Server: Apache/1.3.41 (Unix) mod_fastcgi/2.4.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Last-Modified: Sat, 29 Mar 2008 00:06:46 GMT
ETag: W/"56f49ac-7ffc-47ed9df7"
Accept-Ranges: bytes
Content-Length: 32764
Content-Type: image/jpeg

This is on shared hosting on laran.lunarmania.com

Thanks,
Skye

Logged
QuestaKid
Trekkie
**
Offline Offline

Posts: 16


« Reply #1 on: April 16, 2008, 08:03:58 PM »

Hello Skye,

If you are still seeing this behavior, this may be a problem with your curl:

$ curl -lI http://www.treeleaf.org/images/goldenJimdo.jpg
HTTP/1.1 200 OK
Date: Thu, 17 Apr 2008 02:50:00 GMT
Server: Apache/1.3.41 (Unix) mod_fastcgi/2.4.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Last-Modified: Sat, 29 Mar 2008 01:40:07 GMT
ETag: "56f49ac-7ffc-47ed9df7"
Accept-Ranges: bytes
Content-Length: 32764
Content-Type: image/jpeg

$ curl -lI http://www.treeleaf.org/images/goldenJimdo.jpg
HTTP/1.1 200 OK
Date: Thu, 17 Apr 2008 02:50:04 GMT
Server: Apache/1.3.41 (Unix) mod_fastcgi/2.4.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Last-Modified: Sat, 29 Mar 2008 01:40:07 GMT
ETag: "56f49ac-7ffc-47ed9df7"
Accept-Ranges: bytes
Content-Length: 32764
Content-Type: image/jpeg

$ curl -V
curl 7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

QK
Logged

Direction is initially more important than speed - unknown
skye
Newbie
*
Offline Offline

Posts: 2


« Reply #2 on: April 17, 2008, 10:03:11 AM »

Whatever the problem was, its gone now.  My curl shows the same result now.

Skye

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM