Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
txp stops sending 304 header -when language update is available-
Hi all,
I have noticed recently that my txp site (4.5.5 r5575) stops sending a 304 header and serves 200 instead when a language update is available (even after update), until I re-save the preferences. Additionally, the diagnostic shows that txplib_forms.php
has been modified (maybe by myself, will check it tomorrow), but there seem to be nothing in this file that explains this annoying behavior. The server setup is rather usual:
Server: Apache/2.2.23 (Unix) DAV/2 SVN/1.7.6 PHP/5.4.8
Apache version: Apache/2.2.23 (Unix) DAV/2 SVN/1.7.6 PHP/5.4.8
Does someone observe the same issue?
Last edited by etc (2014-05-21 10:45:23)
Offline
Offline
Re: txp stops sending 304 header -when language update is available-
Gocom wrote #280613:
Textpattern stops sending 304 statuses if you are sending
If-Modified-Since
that is greater than our Last-Modified, or omitting it. This keeps on happening until you bump-up the caching date by editing some content.
That makes sense, thanks, I will check headers if it happens again. But why would a browser stop sending If-Modified-Since
, or send something different from Last-Modified
?
Offline
Re: txp stops sending 304 header -when language update is available-
OK, that’s nothing to do with language updates, it’s handle_lastmod() that sends a week ago Last-Modified
header if $prefs['lastmod']
is too old. But why? This makes Last-Modified
useless on only occasionally updated sites…
Offline