List Info

Thread: Typo, cache and http header




Typo, cache and http header
user name
2006-10-11 20:18:24
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('applicati
on/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.
fredericde-villamil.com                        tel: +33 (0)6
62 19 1337
http://fredericdevillam
il.com




_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )