Typo, cache and http header


I want to send http_headers according to the browser visiting my typo

I have writen this small piece of code

if @request.env[“HTTP_ACCEPT”].index(‘application/xhtml+xml’)
@headers[“Content-Type”] = “application/xhtml+xml; charset=utf-8”
@headers[“Content-Type”] = “text/html; charset=utf-8”

If I place it in my theme (just before the doctype declaration), it
seems that typo caches the result (which is not what I want). Any
clue on where I can put that piece of code to have it send http
headers without caching them ?


Frédéric de Villamil
“Quand tu veux chasser une belle fille, il vaut mieux commencer par
draguer sa copine moche” – précepte de go.
[email protected] tel: +33 (0)6 62 19 1337

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs