Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Topic started by: eech55 on December 11, 2006, 11:51:20 PM

Title: If-Modified-Since, Last-Modified and Not-Modified HTTP1.1 Fields
Post by: eech55 on December 11, 2006, 11:51:20 PM
Hello

Intro:
It would be awesome if SMF adds this feature! no other board has this feature at all. Some of them add it as mods, but it's not as good as having it by default!

Imagine number of users who will be amazed by the suprior SMF speed once they just install it! having If-modified-since, Last-modified and Not-Modified HTTP1.1 fields working properly by default will be a BIG BOOM and the forum will be BLAZING FAST and hundreds of SQL queries will be removed in case no change was made! Not only that, also the b/w will be reduced by simply sending a small HTTP1.1 reply containing "not-modified" and that's it!!

It's not hard!
What we need is to

1st implementation
Although it's straight and forward, and things should go 99.99% as we want. But personally I always prefer sticking on the safe side as much as we can. So when this feature is newly added, we will not enabled it by default (but it comes with the default distribution). There might be some small bits here or there messing. And after few monthes when we get confident about this addition for 100%, then we will enable it by default on all versions!


Title: Re: If-Modified-Since, Last-Modified and Not-Modified HTTP1.1 Fields
Post by: Coldfx on December 13, 2006, 08:47:09 PM
Not a bad idea, but a majority of SMF is already PHP-based over MySQL, so obviously is faster than most forum software as is..
Title: Re: If-Modified-Since, Last-Modified and Not-Modified HTTP1.1 Fields
Post by: vbgamer45 on December 13, 2006, 08:58:50 PM
Good idea. Try to make a mod or something if you can heh.
Title: Re: If-Modified-Since, Last-Modified and Not-Modified HTTP1.1 Fields
Post by: eech55 on December 13, 2006, 11:10:39 PM
QuoteNot a bad idea, but a majority of SMF is already PHP-based over MySQL, so obviously is faster than most forum software as is..
most forums are php-based over MySQL.. I don't see why would this make SMF faster.. It sounds like you didn't try using these HTTP1.1 fields properly! they'll make it super fast!

QuoteGood idea. Try to make a mod or something if you can heh.
I'm a Perl guy, and I hate PHP programming for many reasons, basically doesn't make sense to me. I did it with Perl and it was awesome.. However PHP spreads like cancer and I have to learn it one day :).

If you want me to do a mod for it:

and currently I'm preparing for a Cisco networking certificate, so no time.. that's why I wanted SMF experts to do it! they'll do a much better job than a networking guy (me)  ;)

and btw, does this imply that SMF doesn't even have a MOD for it?!  >:(
Title: Re: If-Modified-Since, Last-Modified and Not-Modified HTTP1.1 Fields
Post by: qwerty22 on July 18, 2012, 01:17:17 PM
That would be a good to have feature, as speed optimization has gained lots of attention (cf. http://developer.yahoo.com/performance/rules.html/), although I do not know if it would be easy to integrate it with Transfer-Encoding: chunked, as probably there are many queries to the data base.

On the other hand, as avatars (index.php?action=dlattach;attach=###;type=avatar) seldom change and probably there is only one table checked on the database to get them, this might be a low hanging fruit for this kind of optimization, because answer posts usually have many avatars.
Title: Re: If-Modified-Since, Last-Modified and Not-Modified HTTP1.1 Fields
Post by: Arantor on July 18, 2012, 01:20:02 PM
Well... transfer-encoding chunked is handled by Apache itself rather than at the PHP level in general.

As far as avatars go, better solution would be to shift handling away from dlattach and use static files, so that Apache can send those headers itself, this is covered in the big list of 24 things to do to make SMF run faster (see the thread in Server Performance & Configuration, it's the very first item)
Title: Re: If-Modified-Since, Last-Modified and Not-Modified HTTP1.1 Fields
Post by: qwerty22 on July 18, 2012, 01:33:35 PM
Thanks. I got it!