Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: JavaScript Packers, Compression & Decompression Date: Thu, 27 Nov 2014 13:46:22 +0100 Organization: solani.org Lines: 25 Message-ID: References: <3a302923-e399-49f5-a4fa-5b6b7f571864@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1417092374 13430 eJwFwYEBwDAEBMCVKngyTnn2HyF3rhB0GBzm6ztx5iRxf9mGzY5/V6aoZZ1zAjRasqvVAT4uBhHS (27 Nov 2014 12:46:14 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Thu, 27 Nov 2014 12:46:14 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 X-User-ID: eJwFwQkBACAIA8BKotuwDo/0j+Adj0zlEAUOx+9DHAySd0/68vAb1lY9T6vGwV7bNkIs5QcfJxEs In-Reply-To: <3a302923-e399-49f5-a4fa-5b6b7f571864@googlegroups.com> Cancel-Lock: sha1:I7DRqqsdjrO/GwCTKNtwmaxZo0w= X-NNTP-Posting-Host: eJwFwYEBwCAIA7CXitKi5wiD/09Ywi1ThYtyDqfzWIHobms+vsliRQ2w8Fyn96lPK4W4fvEDM+kRVA== Xref: csiph.com comp.lang.javascript:26223 Chris White wrote: > *Why doesn't JavaScript have built in decompression for all the top > formats?* Because it is not the job of JavaScript to decompress anything transmitted via HTTP -- it is generally the client's job, see RFC 2616 section 3.5[1] (resp. the newer RFCs obsoliting RFC 2616). If you want better/other content-codings, you can propose them -- but this is OT in this newsgroup, anyway. > All my attempts of self extracting web pages fail because people > complain that all stuff is now hidden from search engines! Not only from search engines, but from all clients that don't support the required scripting language. Note that the HTML5 specification says[2]: | Authors are also encouraged to make their applications degrade | gracefully in the absence of scripting support. [1] [2] -- Christoph M. Becker