Hello,
I want to send http_headers according to the browser visiting my typo
app.
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”
else
@headers[“Content-Type”] = “text/html; charset=utf-8”
end
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 ?
Regards
Frederic
–
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
http://fredericdevillamil.com