Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-05-06 08:16:20

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

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

#2 2014-05-06 08:50:12

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: txp stops sending 304 header -when language update is available-

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.

Offline

#3 2014-05-06 09:51:21

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

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

#4 2014-05-21 10:39:29

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

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

Board footer

Powered by FluxBB