gzip'pe A4D replies?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

gzip'pe A4D replies?

Sig Pam
Hi *!

Is there a way to have A4D deliver it's pages gzipped to the client when it supports it (Client request has set  "Accept-Encoding gzip, deflate").

Thank you all

  Peter

--
Angaben gemäß §35a GmbH-Gesetz:
ITServ GmbH
Sitz der Gesellschaft: 55294 Bodenheim/Rhein
Eingetragen unter Registernummer HRB 41668 beim Amtsgericht Mainz
Vertretungsberechtiger Geschäftsführer: Peter Bauer, 55294 Bodenheim
Umsatzsteuer-ID: DE182270475
_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: gzip'pe A4D replies?

Aparajita Fishman
The 4D v15 web server does that already.

> On Mar 31, 2016, at 9:06 AM, Sig Pam <[hidden email]> wrote:
>
> Hi *!
>
> Is there a way to have A4D deliver it's pages gzipped to the client when it supports it (Client request has set  "Accept-Encoding gzip, deflate").
>
> Thank you all
>
>  Peter
>
> --
> Angaben gemäß §35a GmbH-Gesetz:
> ITServ GmbH
> Sitz der Gesellschaft: 55294 Bodenheim/Rhein
> Eingetragen unter Registernummer HRB 41668 beim Amtsgericht Mainz
> Vertretungsberechtiger Geschäftsführer: Peter Bauer, 55294 Bodenheim
> Umsatzsteuer-ID: DE182270475
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/

Many thanks,

  - Aparajita


_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: gzip'pe A4D replies?

Sig Pam
OK, unprecise description by me. Next try:

Is there a way to have A4D using NTK on 4D v13 to deliver it's pages gzipped to the client when it supports it (Client request has set  "Accept-Encoding gzip, deflate")?

Thank you all,

  Peter
 

-----Ursprüngliche Nachricht-----
Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Aparajita Fishman
Gesendet: Donnerstag, 31. März 2016 18:24
An: Active4D Developer Discussion List
Betreff: Re: [Active4d-dev] gzip'pe A4D replies?

The 4D v15 web server does that already.

> On Mar 31, 2016, at 9:06 AM, Sig Pam <[hidden email]> wrote:
>
> Hi *!
>
> Is there a way to have A4D deliver it's pages gzipped to the client when it supports it (Client request has set  "Accept-Encoding gzip, deflate").
>
> Thank you all
>
>  Peter
>
> --
> Angaben gemäß §35a GmbH-Gesetz:
> ITServ GmbH
> Sitz der Gesellschaft: 55294 Bodenheim/Rhein
> Eingetragen unter Registernummer HRB 41668 beim Amtsgericht Mainz
> Vertretungsberechtiger Geschäftsführer: Peter Bauer, 55294 Bodenheim
> Umsatzsteuer-ID: DE182270475
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/

Many thanks,

  - Aparajita


_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/


--
Angaben gemäß §35a GmbH-Gesetz:
ITServ GmbH
Sitz der Gesellschaft: 55294 Bodenheim/Rhein
Eingetragen unter Registernummer HRB 41668 beim Amtsgericht Mainz
Vertretungsberechtiger Geschäftsführer: Peter Bauer, 55294 Bodenheim
Umsatzsteuer-ID: DE182270475
_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: gzip'pe A4D replies?

Oliver Brodwolf-2
Hello Peter


Read NTK Manual
GZip Decompress Document
GZip Compress Blob


and set a header "Content-Encoding";"gzip"

In the NTK Demo Database there you can find more.

HTTPD__CompressionFilter

In my code I do this:
Test if client accept gzip , deflate
        if content is static
                is the zipped file in my parallel zip-cache-directory structure
                        has it the same modification date as the source file
                                send this file

        if no such file, or different modifcation date
                gzip the file and save it in a parallel cache directory structure
                /js/plugin/grossesscript.js  -> /zipcache/js/plugin/grossesscript.js
                change the modification date/time  with SET DOCUMENT PROPERTIES
        set header Content-Encoding";"gzip"
        set header "Content-Length" with the correct size of the zipped file
        set header "Last-Modified" to the modification date/time
        send the file with TCP Send File

        if content is dynamic
                set all the header
                send the content with TCP Send Blob

Regards, Oliver



> Am 01.04.2016 um 11:04 schrieb Sig Pam <[hidden email]>:
>
> OK, unprecise description by me. Next try:
>
> Is there a way to have A4D using NTK on 4D v13 to deliver it's pages gzipped to the client when it supports it (Client request has set  "Accept-Encoding gzip, deflate")?
>
> Thank you all,
>
>  Peter
>
>
> -----Ursprüngliche Nachricht-----
> Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Aparajita Fishman
> Gesendet: Donnerstag, 31. März 2016 18:24
> An: Active4D Developer Discussion List
> Betreff: Re: [Active4d-dev] gzip'pe A4D replies?
>
> The 4D v15 web server does that already.
>
>> On Mar 31, 2016, at 9:06 AM, Sig Pam <[hidden email]> wrote:
>>
>> Hi *!
>>
>> Is there a way to have A4D deliver it's pages gzipped to the client when it supports it (Client request has set  "Accept-Encoding gzip, deflate").
>>
>> Thank you all
>>
>> Peter
>>
>> --
>> Angaben gemäß §35a GmbH-Gesetz:
>> ITServ GmbH
>> Sitz der Gesellschaft: 55294 Bodenheim/Rhein
>> Eingetragen unter Registernummer HRB 41668 beim Amtsgericht Mainz
>> Vertretungsberechtiger Geschäftsführer: Peter Bauer, 55294 Bodenheim
>> Umsatzsteuer-ID: DE182270475
>> _______________________________________________
>> Active4D-dev mailing list
>> [hidden email]
>> http://list.aparajitaworld.com/listinfo/active4d-dev
>> Archives: http://active4d-nabble.aparajitaworld.com/
>
> Many thanks,
>
>  - Aparajita
>
>
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/
>
>
> --
> Angaben gemäß §35a GmbH-Gesetz:
> ITServ GmbH
> Sitz der Gesellschaft: 55294 Bodenheim/Rhein
> Eingetragen unter Registernummer HRB 41668 beim Amtsgericht Mainz
> Vertretungsberechtiger Geschäftsführer: Peter Bauer, 55294 Bodenheim
> Umsatzsteuer-ID: DE182270475
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/

_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: gzip'pe A4D replies?

Sig Pam
Great, Oliver. Thank you.

I was stumbeling over the NTK Manual an GZIP Compress Blob 10 seconds after my post, but I was wondering if this functionality has been already built in A4D and I did not find it (even if the letters g-z-i-p do not occur in the A4D Manual).

Again, thank you!

  Peter

-----Ursprüngliche Nachricht-----
Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Oliver Brodwolf
Gesendet: Freitag, 1. April 2016 11:26
An: Active4D Developer Discussion List
Betreff: Re: [Active4d-dev] gzip'pe A4D replies?

Hello Peter

Read NTK Manual
GZip Decompress Document
GZip Compress Blob

and set a header "Content-Encoding";"gzip"

In the NTK Demo Database there you can find more.

HTTPD__CompressionFilter

In my code I do this:
Test if client accept gzip , deflate
if content is static
is the zipped file in my parallel zip-cache-directory structure
has it the same modification date as the source file
send this file

 

if no such file, or different modifcation date
gzip the file and save it in a parallel cache directory structure
/js/plugin/grossesscript.js  -> /zipcache/js/plugin/grossesscript.js
change the modification date/time  with SET DOCUMENT PROPERTIES
set header Content-Encoding";"gzip"
set header "Content-Length" with the correct size of the zipped file
set header "Last-Modified" to the modification date/time
send the file with TCP Send File

 

if content is dynamic
set all the header
send the content with TCP Send Blob

Regards, Oliver

> Am 01.04.2016 um 11:04 schrieb Sig Pam <[hidden email]>:
>
> OK, unprecise description by me. Next try:
>
> Is there a way to have A4D using NTK on 4D v13 to deliver it's pages gzipped to the client when it supports it (Client request has set  "Accept-Encoding gzip, deflate")?
>
> Thank you all,
>
>  Peter
>
>
> -----Ursprüngliche Nachricht-----
> Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Aparajita Fishman
> Gesendet: Donnerstag, 31. März 2016 18:24
> An: Active4D Developer Discussion List
> Betreff: Re: [Active4d-dev] gzip'pe A4D replies?
>
> The 4D v15 web server does that already.
>
>> On Mar 31, 2016, at 9:06 AM, Sig Pam <[hidden email]> wrote:
>>
>> Hi *!
>>
>> Is there a way to have A4D deliver it's pages gzipped to the client when it supports it (Client request has set  "Accept-Encoding gzip, deflate").
>>
>> Thank you all
>>
>> Peter
>>
>> --
>> Angaben gemäß §35a GmbH-Gesetz:
>> ITServ GmbH
>> Sitz der Gesellschaft: 55294 Bodenheim/Rhein
>> Eingetragen unter Registernummer HRB 41668 beim Amtsgericht Mainz
>> Vertretungsberechtiger Geschäftsführer: Peter Bauer, 55294 Bodenheim
>> Umsatzsteuer-ID: DE182270475
>> _______________________________________________
>> Active4D-dev mailing list
>> [hidden email]
>> http://list.aparajitaworld.com/listinfo/active4d-dev
>> Archives: http://active4d-nabble.aparajitaworld.com/
>
> Many thanks,
>
>  - Aparajita
>
>
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/
>
>
> --
> Angaben gemäß §35a GmbH-Gesetz:
> ITServ GmbH
> Sitz der Gesellschaft: 55294 Bodenheim/Rhein
> Eingetragen unter Registernummer HRB 41668 beim Amtsgericht Mainz
> Vertretungsberechtiger Geschäftsführer: Peter Bauer, 55294 Bodenheim
> Umsatzsteuer-ID: DE182270475
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/

_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

--
Angaben gemäß §35a GmbH-Gesetz:
ITServ GmbH
Sitz der Gesellschaft: 55294 Bodenheim/Rhein
Eingetragen unter Registernummer HRB 41668 beim Amtsgericht Mainz
Vertretungsberechtiger Geschäftsführer: Peter Bauer, 55294 Bodenheim
Umsatzsteuer-ID: DE182270475
_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: gzip'pe A4D replies?

Aparajita Fishman
In reply to this post by Oliver Brodwolf-2
If someone has implemented gzip support in the NTK shell, please send the code to me so I can include it in future releases.

> On Apr 1, 2016, at 2:26 AM, Oliver Brodwolf <[hidden email]> wrote:
>
> Hello Peter
>
>
> Read NTK Manual
> GZip Decompress Document
> GZip Compress Blob
>
>
> and set a header "Content-Encoding";"gzip"
>
> In the NTK Demo Database there you can find more.
>
> HTTPD__CompressionFilter
>
> In my code I do this:
> Test if client accept gzip , deflate
> if content is static
> is the zipped file in my parallel zip-cache-directory structure
> has it the same modification date as the source file
> send this file
>
> if no such file, or different modifcation date
> gzip the file and save it in a parallel cache directory structure
> /js/plugin/grossesscript.js  -> /zipcache/js/plugin/grossesscript.js
> change the modification date/time  with SET DOCUMENT PROPERTIES
> set header Content-Encoding";"gzip"
> set header "Content-Length" with the correct size of the zipped file
> set header "Last-Modified" to the modification date/time
> send the file with TCP Send File
>
> if content is dynamic
> set all the header
> send the content with TCP Send Blob
>
> Regards, Oliver
>
>
>
>> Am 01.04.2016 um 11:04 schrieb Sig Pam <[hidden email]>:
>>
>> OK, unprecise description by me. Next try:
>>
>> Is there a way to have A4D using NTK on 4D v13 to deliver it's pages gzipped to the client when it supports it (Client request has set  "Accept-Encoding gzip, deflate")?
>>
>> Thank you all,
>>
>> Peter
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Aparajita Fishman
>> Gesendet: Donnerstag, 31. März 2016 18:24
>> An: Active4D Developer Discussion List
>> Betreff: Re: [Active4d-dev] gzip'pe A4D replies?
>>
>> The 4D v15 web server does that already.
>>
>>> On Mar 31, 2016, at 9:06 AM, Sig Pam <[hidden email]> wrote:
>>>
>>> Hi *!
>>>
>>> Is there a way to have A4D deliver it's pages gzipped to the client when it supports it (Client request has set  "Accept-Encoding gzip, deflate").
>>>
>>> Thank you all
>>>
>>> Peter
>>>
>>> --
>>> Angaben gemäß §35a GmbH-Gesetz:
>>> ITServ GmbH
>>> Sitz der Gesellschaft: 55294 Bodenheim/Rhein
>>> Eingetragen unter Registernummer HRB 41668 beim Amtsgericht Mainz
>>> Vertretungsberechtiger Geschäftsführer: Peter Bauer, 55294 Bodenheim
>>> Umsatzsteuer-ID: DE182270475
>>> _______________________________________________
>>> Active4D-dev mailing list
>>> [hidden email]
>>> http://list.aparajitaworld.com/listinfo/active4d-dev
>>> Archives: http://active4d-nabble.aparajitaworld.com/
>>
>> Many thanks,
>>
>> - Aparajita
>>
>>
>> _______________________________________________
>> Active4D-dev mailing list
>> [hidden email]
>> http://list.aparajitaworld.com/listinfo/active4d-dev
>> Archives: http://active4d-nabble.aparajitaworld.com/
>>
>>
>> --
>> Angaben gemäß §35a GmbH-Gesetz:
>> ITServ GmbH
>> Sitz der Gesellschaft: 55294 Bodenheim/Rhein
>> Eingetragen unter Registernummer HRB 41668 beim Amtsgericht Mainz
>> Vertretungsberechtiger Geschäftsführer: Peter Bauer, 55294 Bodenheim
>> Umsatzsteuer-ID: DE182270475
>> _______________________________________________
>> Active4D-dev mailing list
>> [hidden email]
>> http://list.aparajitaworld.com/listinfo/active4d-dev
>> Archives: http://active4d-nabble.aparajitaworld.com/
>
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/

Many thanks,

  - Aparajita


_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/