Hi!
I’m trying to improve the performance of my application and checked on gtmatrix.com that my site needs to “keep-alive” to get better performance.
How can I keep my CGI alive?
Alex
Hi!
I’m trying to improve the performance of my application and checked on gtmatrix.com that my site needs to “keep-alive” to get better performance.
How can I keep my CGI alive?
Alex
Did you ask a searchengine before you asked here, because this is not related to Xojo.
This Link may help: https://varvy.com/pagespeed/keep-alive.html
I know that.
But when i enable it on htaccess, i get a 500 internal server error.
That’s why i’m asking.
Did you try editing your Apache config file?
In the App.Open event,
App.AutoQuit = False
[quote=414498:@Greg O’Lone]In the App.Open event,
App.AutoQuit = False
It’s been like this since 2017
I’m trying to improve the performance on my site. I took a test with gtmetrix
msi test
It says that keep-alive is not turned on. i don’t know if it’s a bug on site, or i need to do anything different.
Any clue?
Ok, were talking about two different things.
App.AutoQuit prevents the binary application from ever quitting.
The Keep-Alive header has to do with persistent connections when dealing with a web server.
Now, since you are working with a CGI app, the responsibility for this falls to the web server app (Apache, IIS, etc) which actually talks to the browser.
This is what gtmetrix say about keep-alive:
[quote][h]Enabling Keep-Alive connections in Apache[/h]
Apache enables Keep-Alive connections by default, however you can explicitly turn them on by adding the following line to your httpd.conf file.
Having said that, if your site is running on a shared host, you probably won’t have access to httpd.conf and will therefore have to live with whichever setting your hosting provider has chosen. Contrary to what some websites suggest, adding a Header set Connection keep-alive directive to your .htaccess file will not actually enable Keep-Alive connections, but it will send browsers misleading information about the server’s capabilities.[/quote]
I guess you need access to your apache httpd.conf and the .htaccess directive will not help you.
And from Derk’s link:
[quote=414473:@Sascha S]Did you ask a searchengine before you asked here, because this is not related to Xojo.
This Link may help: https://varvy.com/pagespeed/keep-alive.html[/quote]
…
Again
When i enable it on htaccess, i get a 500 internal server error.
[quote=415524:@Alexandre Cunha]Again
When i enable it on htaccess, i get a 500 internal server error.[/quote]
In which case, Apache is not set up to allow that in a htaccess file.