Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-13 19:44:51

Aleksandersen
Member
From: Lillehammer, Norway
Registered: 2007-04-12
Posts: 77

Control http headers

Hi,

Where is HTTP headers set in Textpattern?

I have to issues I cannot resolve, because Textpattern is setting headers for me somewhere.

Cache-Control:·no-cache should not be sent.
Content-Type:·text/html;·charset=utf-8 should say UTF-8.

Textpattern sets these headers somewhere (that I have not been able to find). It keeps overwriting my server’s mod_expires preferences.

Offline

#2 2007-05-13 20:21:46

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Control http headers

To disable the ‘no-cache’, try switching off sending ‘last modified’ headers in the advanced preferences.

Why do you want UTF-8 in uppercase instead of lowercase utf-8?

Offline

#3 2007-05-13 20:32:58

Aleksandersen
Member
From: Lillehammer, Norway
Registered: 2007-04-12
Posts: 77

Re: Control http headers

I want the Last-Modified header. :)

Konqueror has issues with lowercase “utf-8”. The standard says “UTF-8”

Offline

#4 2007-05-13 21:56:30

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Control http headers

The ‘no-cache’ header is in the file ‘/textpattern/lib/txplib_misc.php’ as part of the ‘handle_lastmod’ function.

The standard, which for HTTP/1.1 is RFC 2616, says:

HTTP character sets are identified by case-insensitive tokens.

Offline

#5 2007-05-13 22:07:32

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Control http headers

Cache-Control:·no-cache should not be sent.

Why not?

“no-cache” is poorly named and often misunderstood. I believe it’s used appropriately by Textpattern. If you can demonstrate otherwise, please do so.

Last edited by zem (2007-05-13 22:09:38)


Alex

Offline

Board footer

Powered by FluxBB