NetTalk Central

Author Topic: How to manually set "keep-alive" on a custom site  (Read 4914 times)

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
How to manually set "keep-alive" on a custom site
« on: December 06, 2016, 07:25:58 PM »
Hi Bruce/Folks,

Our new website http://sandersnoonan.com.au is running on nettalk but heavily stripped down and rebuilt.

None of the nettalk css or javascript files are used.

So when I flag in the NetWebServer settings for the "keep-alive" setting to be used, and run a test on it (https://www.giftofspeed.com/check-keep-alive/index.php?url=http%3A%2F%2Fsandersnoonan.com.au), it's not on.

Figures that it's part of the files I've stripped out.

So my question is: How can I manually set the "keep-alive" setting for the webserver?
Cheers,

Stu Andrews

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: How to manually set "keep-alive" on a custom site
« Reply #1 on: December 06, 2016, 07:37:21 PM »
Have been running some more testing of the site (https://gtmetrix.com/reports/sandersnoonan.com.au/iFI2azAY), and it looks like I'm missing a number of the wonderful settings that Nettalk automatically can give. Because I hacked it to bits and rebuilt from scratch.

Bruce - How can I manually set any of the settings on the "Performance" tab?
Cheers,

Stu Andrews

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: How to manually set "keep-alive" on a custom site
« Reply #2 on: December 12, 2016, 07:07:37 AM »
>> Figures that it's part of the files I've stripped out.

no, it's specifically turned off at the moment, regardless of the setting. There's a bug somewhere that causes problems when this is on, and I haven't tracked it down yet.
Leave the setting on, on your side and it'll come back "at some point" in the future.

Cheers
Bruce

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: How to manually set "keep-alive" on a custom site
« Reply #3 on: December 12, 2016, 07:20:08 AM »
Hi Stu,

>> How can I manually set any of the settings on the "Performance" tab?

It's literally impossible to answer this in a reasonable space Stu. I have no idea what you've done to the server and each feature takes a bunch of code, sometimes quite sophisticated code. And ultimately some of the settings will have no effect on your site anyway - again depending on what you have done.

What I would do is look at the recommendations made by GT Metrix, considering each one in turn and then attacking that.
For example, it seems you are serving large images into a small space in the page - in those cases simple make a new image, the correct size, and serve that instead.

you could also concatenate your css into a single file, load your JavaScript async and so on.

Most of all you could reduce the actual amount of stuff that the front page has to load. It's like 3.7 megabytes, just for the front page. That's a lot!

cheers
Bruce




Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: How to manually set "keep-alive" on a custom site
« Reply #4 on: December 13, 2016, 12:56:11 AM »
Hi Bruce,

Thanks for the info.

I'm a little confused though with your answer to my question about the performance tab.

In the template we set a value to "true" or "false".

I'm asking, how can I manually set that "true" on, in case something I'm doing in the code has stopped it from working? How do I absolutely make sure it's ON?

Yes, I get that some things aren't just a simple setting, but you've got them there as true/false options for us. So I'm asking, how do I set the option manually?

For instance: How can I manually make sure that file caching is turned on?
Cheers,

Stu Andrews

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: How to manually set "keep-alive" on a custom site
« Reply #5 on: December 15, 2016, 03:32:36 AM »
>> I'm asking, how can I manually set that "true" on, in case something I'm doing in the code has stopped it from working? How do I absolutely make sure it's ON?

The template value is put into the web server defaults queue. (as a property).
This is transferred to the WebHandler when a thread starts. (as p_web.site.whatever).
So depending on which setting you have in mind, depends on the property.

For example, in webHandler

p_web.site.CompressDynamic
contains whether or not to compress the dynamic text.

cheers
Bruce