Gayle
December 12th, 2004, 09:07
I've been doing some experimenting with HTTP 304 (not modified) responses with the Mambo RSS. I have a modified version that checks the If-Modified-Since header from the client and if nothing in the feed has a modified or created date later than that then it sends a 304 response instead of sending the feed. If you are using RSS without the cache then a Last-Modified header will be sent with the reply so the client knows what to send back.
If you are using cacheing then it doesn't use the Last-Modified time, it uses an ETag. This is the MD5 sum of the cached file, if the MD5 sum of the cached file matches the If-None-Match header sent by the client then again a 304 is sent instead of the file.
More details and the files can be found at http://www.anothercrap.com/content/view/18/40/
Moving forward, I want to look and see if I can get Mambo to work with this as well. It could represent a very significant bandwidth saving on a busy site.
Comments anyone?
If you are using cacheing then it doesn't use the Last-Modified time, it uses an ETag. This is the MD5 sum of the cached file, if the MD5 sum of the cached file matches the If-None-Match header sent by the client then again a 304 is sent instead of the file.
More details and the files can be found at http://www.anothercrap.com/content/view/18/40/
Moving forward, I want to look and see if I can get Mambo to work with this as well. It could represent a very significant bandwidth saving on a busy site.
Comments anyone?