• Gzip’s setting in Apache 2 and squid’s processing method analysis


    Gzip can speed up large websites Sometimes the compression ratio is as high as 80%. Recently, it has been tested, at least more than 40%, which is quite good In versions after Apache 2, the module name is not gzip, but mod_ deflateIf you want to open gzip, you must open the following two modulesLoadModule […]

  • VBS obtains the implementation code of HTTP content compressed by gzip


    In order to improve the loading speed, many websites enable the gzip compression function of the HTTP server. When the HTTP request sent by the client declares that gzip coding can be accepted, the server automatically gzip compresses the HTTP response content. However, it is not so easy to decompress the gzip code automatically in […]

  • Linux prompts gzip: stdin: not error when extracting tar.gz file


    We all know that the tar command under Linux system can be used to decompress files. When decompressing tar.gz files with tar command, gzip: stdin: not in gzip format error will be prompted. How to solve this situation? Follow the Xiaobian to understand the solution to the error of tar.gz file decompression. An error is […]

  • Linux file search and other basic commands (3)


    1. Linux contains a large number of files, for file search, Linux provides the find command. Find is a very effective tool. It can traverse the target directory or even the entire file system to find some files or directories find [path…] [expression] amongexpressionThere are three types: options, tests and actions. Multiple expressions are separated […]

  • Java gzip compression and decompression code example


    This article mainly introduces the Java gzip compression and decompression code examples, the article through the example code introduction is very detailed, to everybody’s study or the work has certain reference study value, the need friend may refer to 1. Gzip compression public static byte[] compress(String str, String encoding) { if (str == null || […]

  • The use of gzip and unzip commands to compress and unzip files under Linux


    gzipFunction Description: extract the file. Syntax: gzip [- acfhllnnqrtvv] [- s < compressed end string >] [file…] or gzip [- acfhllnnqrtvv] [- s < compressed end string >] [directory] Add: gzip is a widely used decompressor, which is used to unpack the files compressed by gzip. The default extension of these compressed files is “. […]

  • The problems of using gzip to compress gin in go language


    Recently, I learned go language and wrote a real estate salary website in Chengdu. I grabbed the online recruitment information and made statistics. There are some pits in the middle, which are recorded here for future reference Gzip compression is essential for every web application. In this project, gin is used as the web framework. […]

  • So easy! Apache opens gzip compression


    Apache opens gzip compression Here I use Apache 2.4.17 openapacheInstall directory, findconfCatalogue, open with Notepadhttpd.conf Papers. ctrl+flookup Remove#LoadModule headers_module modules/mod_headers.soPrevious comments#Remove#LoadModule deflate_module modules/mod_deflate.soPrevious comments#Remove#LoadModule filter_module modules/mod_filter.soPrevious comments# Add at the end of the document <IfModule deflate_module>    SetOutputFilter DEFLATE   DeflateCompressionLevel 6   AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript//format to be compressed   AddOutputFilter DEFLATE CSS […]

  • Implementation Code of Getting GZIP Compressed HTTP Content by VBS


    In order to improve the loading speed, many websites have enabled GZIP compression function of HTTP server. When the HTTP request sent by the client declares that it can accept GZIP encoding, the server automatically compresses the HTTP response content by GZIP. However, it is not so easy to decompress GZIP codes automatically in VBS. […]