In the last post we discussed how sending Cache-friendly headers made for a much more enjoyable experience for site visitors and also helped reduce bandwith usage and lowered costs for operators.

Let’s say you are web developer showing of your l33t Photoshop skills on such a site and you upload a gif or a png called ‘myfirst.gif’. A few days or even hours later you realise that you can do some awesome kung-fu with Photoshop filters and make an even better image and you decide to replace with this new image but keep the same name ‘myfirst.gif’

Stop right there, your viewers have already picked up that image via http://myurl/myfirst.gif and with a cache-friendly header that’s going to be in their browser cache and ISP’s proxy cache for a while.
You really don’t want to tell them to reload the page to pick up the changes.

Anytime you make a fix to a content served via cache-friendly headers, save the fixed content to a new name therby generating another URI. That way you get the benefit and not experience support issues where depending on the phase of the moon people see different content.

It’s always a good idea to generate appropiate Cache-Control headers for all content, static or dynamic, Even if you don’t want it cached. Say so via HTTP headers and not via HTML meta tags. Many ISP’s support such mechanisms which may include modifying Apache configs or using .htaccess files or if you use languages such as PHP, judicious use of the header() function

Socially Bookmark Caveats for Web developers working with Cache-friendly headers Post Caveats for Web developers working with Cache-friendly headers to del.icio.us Post Caveats for Web developers working with Cache-friendly headers to digg. Post Caveats for Web developers working with Cache-friendly headers to blinklist Post Caveats for Web developers working with Cache-friendly headers to Furl Post Caveats for Web developers working with Cache-friendly headers to Reddit Post Caveats for Web developers working with Cache-friendly headers to YahooMyWeb

No Responses to “Caveats for Web developers working with Cache-friendly headers”  

  1. No Comments

Leave a Reply

You must log in to post a comment.




© 1997-2007 Mumineen.org. All content is distributed under the following Creative Commons License.
Mumineen.org has served Dawoodi Bohras worldwide since 1997 with the raza and dua mubarak of His Holiness,
the 52nd Dai al-Mutlaq, Syedna Mohammed Burhanuddin Saheb (TUS).
Mumineen.org is not an official organ of Dawat e Hadiyah, nor do its activities reflect the opinions or policies of Dawat e Hadiyah.