|
Post by Pjot on Aug 1, 2020 10:20:46 GMT 1
All, BaCon version 4.1 has just been released and can be obtained from the BaCon website. Please try to refresh your browser cache if the new package is not visible in your browser immediately. This is a major release containing several new features: - Functions to allow GUI programming for several backends
- New hash table implementation for assoc arrays
- Major performance improvements in several parts of the code
- Various important bug fixes and improvements
Previously, the BaCon source code contained parts which were contributed from other sources and were released under a different license. These parts have been removed. The hash table implementation was implemented from scratch and the EVAL code has been made optional. Thanks to everybody who has contributed to this latest release, especially forum members rikky and vovchik. See the full list of changes for more details (please refresh your browser cache to see the latest). Best regards Peter
|
|
|
Post by vovchik on Aug 1, 2020 15:06:44 GMT 1
Dear Peter,
Thanks. Everything working on my two platforms nicely.
With kind regards, vovchik
|
|
|
Post by rikky on Aug 1, 2020 21:45:14 GMT 1
Well, there is this thing in the Apache server, that can prevent browsers from using the cache. It does write something extra in the header, so it must be possible to do this with other servers too. Even a BaCon server. If using Apache then putting the next thing in .htaccess should work: RewriteEngine On RewriteBase /
# DISABLE CACHING <IfModule mod_headers.c> # 1 second #Header set Cache-Control "max-age=1" Header set Cache-Control "no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires 0 </IfModule> And of course you have to enable the headers module which can simply be done by putting a link in /etc/apache2/mods-enabled to /etc/apache2/mods-available/headers.load It seems to work. This might not be desirable. But since new Bacons tend to be released on the first of a month, Header set Expires could als be set to for example "Tue, 1 Sep 2020 00:00:00 GMT" Or something like that. The whole thing changes then, I'm not sure exactly how. askapache.comThanks for the new release. Rik :°)
|
|
|
Post by Pjot on Aug 2, 2020 7:20:44 GMT 1
Hi Rik, The website www.basic-converter.org is hosted by my ISP and they are using nginx. So I already complained to them about the cache behavior long ago, but it seems they have not changed their webserver settings as of yet... Best regards Peter
|
|
|
Post by rikky on Aug 2, 2020 8:24:31 GMT 1
Well, it seems that it can be done with php too. php.netw3schools<?php // Date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); ?> The three different lines are meant for three different (versions of) browsers, as I have understood. Rik.
|
|
|
Post by Pjot on Aug 2, 2020 9:31:40 GMT 1
Thanks rik, Unfortunately, my ISP charges extra money for PHP features Note that I already had enabled certain HTML meta tags long ago, to prevent browsers using a cache. If you look into the HTML source of the BaCon website, then you'll notice the following: <html lang="en"> <head> <meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <meta HTTP-EQUIV="EXPIRES" CONTENT="0"> <.....>
But this does not seem to help. If you feel these settings are wrong then please let me know. BR Peter
|
|
|
Post by rikky on Aug 2, 2020 13:07:29 GMT 1
Well, to be honest, it works for me. I can see the 4.1 version up for grab. And I'm sure to have visited this site in the last few days several times. With a not up to date Chromium Browser. So I guess this has to do with some old browsers. These things tend to die out someday anyway. There is a third way I discovered. If you are allowed to make CGI scripts on your server that is. With your favourite CGI language you can put something like this before your page PRINT "Content-type: text/html" PRINT "Expires: Mon, 26 Jul 1997 05:00:00 GMT" PRINT "Cache-Control: no-cache" PRINT "Pragma: no-cache" PRINT
Rik.
|
|