Skip to content


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
Using Javascript to Make Relative Times Work with Caching

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.