Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-02-14 19:15:53
- std
- Member
- From: Germany
- Registered: 2004-03-19
- Posts: 18
How to get rid of last modified header, but only if certain section?
This is slightly the same topic as discussed here, but unless I’m very much mistaken there is not just yet a solution.
The point ist, I like caching as well as I’m having a random image on the home page of a website. In order to get that random image thing working properly, I have to turn off the send last modified header option.
Unfortunately, TXP only allows to do so for the whole website. What I would like to have is something like that:
<txp:if_section name="default">
<txp:do_not_send_last_modified_header />
<meta http-equiv="expires" content="0" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
</txp:if_section>
With something like this, one could have the benefit of sending the last modified header by default als well as having pages sent sans last modified header.
If anyone has an idea how to get a solution for that, I would very appreciate it.
Offline