Well I thought the "if modified" made sense to me because in this case: "If-Modified-Since: Tue, 05 Feb 2008 14:45:42 GMT" ... the date of Tue, 05 Feb 2008 was the last time I modified the actual graphic. So if I change the graphic the bots will noticed that the graphic has been changed and then and only then actually download a new version of the graphic. Am I correct with this logic?
I have no other caching mechanisms setup, just a 404 redirect as follows:
-----------------------------
ErrorDocument 404 /404.html
RewriteEngine on
RewriteBase /
-----------------------------
and a 301 redirect as follows:
-----------------------------
RewriteCond %{THE_REQUEST} ^.*\/index\.html\ HTTP/
RewriteRule ^(.*)index\.html$ /$1 [R=301,L]
RewriteCond %{http_host} !^mydomain.com$ [nc]
RewriteRule ^(.*)$ [
mydomain.com...] [r=301,nc,L]
-----------------------------
The redirects are working perfectly :-)
The order in which I have things setup in my .htaccess file is:
1.) 404 redirect
2.) 301 redirect
3.) Expires caching
This is all I have in the .htaccess
I cleared the cache and ran again on one of the simpler pages and get this:
-----------------------------------------
[
mydomain.com...]
GET /mypage.html HTTP/1.1
Host: mydomain.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20100101 Firefox/11.0
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
Connection: keep-alive
Cookie: __qca=P0-1940534042-1298044094301; __utma=16574836.1857117754.1312997219.1312997219.1332784426.2; __utmz=16574836.1332784454.2.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
HTTP/1.1 200 OK
Date: Mon, 26 Mar 2012 20:37:53 GMT
Server: Apache/1.3.42 (Unix) mod_auth_tkt/2.1.0 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.8r
Last-Modified: Fri, 23 Mar 2012 23:16:40 GMT
Etag: "1168432-980e-4f6d0458"
Accept-Ranges: bytes
Content-Length: 38926
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
----------------------------------------------------------
[
mydomain.com...]
GET /mystyle.css HTTP/1.1
Host: mydomain.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20100101 Firefox/11.0
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Referer: [
mydomain.com...]
Cookie: __qca=P0-1940534042-1298044094301; __utma=16574836.1857117754.1312997219.1312997219.1332784426.2; __utmz=16574836.1332784454.2.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
HTTP/1.1 200 OK
Date: Mon, 26 Mar 2012 20:37:54 GMT
Server: Apache/1.3.42 (Unix) mod_auth_tkt/2.1.0 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.8r
Last-Modified: Wed, 21 Mar 2012 11:55:13 GMT
Etag: "116855c-47d-4f69c1a1"
Accept-Ranges: bytes
Content-Length: 1149
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/css
----------------------------------------------------------
[
mydomain.com...]
GET /images/myimage.gif HTTP/1.1
Host: mydomain.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20100101 Firefox/11.0
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Referer: [
mydomain.com...]
Cookie: __qca=P0-1940534042-1298044094301; __utma=16574836.1857117754.1312997219.1312997219.1332784426.2; __utmz=16574836.1332784454.2.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
HTTP/1.1 200 OK
Date: Mon, 26 Mar 2012 20:37:54 GMT
Server: Apache/1.3.42 (Unix) mod_auth_tkt/2.1.0 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.8r
Last-Modified: Fri, 28 Oct 2011 12:42:40 GMT
Etag: "11688e5-c848-4eaaa340"
Accept-Ranges: bytes
Content-Length: 51272
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: image/gif
-----------------------------------------
Live http headers also gives info on all the other graphics which are similar to the .gif reference above, google ads, social buttons I have on the site, google analytics, etc....