witch-house / pronoun.is

Show people how to use pronouns!
http://pronoun.is
GNU Affero General Public License v3.0
929 stars 103 forks source link

Make pronoun.is cacheable #9

Open ghost opened 9 years ago

ghost commented 9 years ago

There is some part of the http standard (and also of the middleware) that should allow us to mark our pages as not dynamic. This might be useful in the case heroku puts our dyno to sleep or there is a spike in traffic. Not super high priority but I want to know how to do this.

nogweii commented 8 years ago

This would be as simple as including headers that tell the browsers how long to cache the page. Probably the way is to include the ETag and Cache-Control headers.