Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f3cc4671c3
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.723 kb
layout title permalink tags linkblog
post
Using Javascript to Make Relative Times Work with Caching
/2009/02/using-javascript-to-make-relative-times-work-with-caching
javascript

A great idea from the folks over at 37 signals.

It's easy to think that the relative-time style of this comment was written 15 minutes ago is incompatible with caching. How are you supposed to cache something if the text changes every minute? Static pages with JavaScripts, that's how!

Update: Looks like this type of idea has been around for a while (I'd just never thought of it before)! :D

Jump to Line
Something went wrong with that request. Please try again.