Project

General

Profile

Bug #72886

Updated by Markus Klein over 8 years ago

Hi there, 

 To get gzip compression activate on Apache 2.3.6 or lower we should test in .htaccess file something like this : 

 <pre> 
	 


	 # Compresses all output labeled with one of the following media types. 
	 <IfVersion >= 2.3.7> 
		 <IfModule mod_filter.c> 
			 AddOutputFilterByType DEFLATE application/atom+xml \ 
				 application/javascript \ 
				 application/json \ 
				 application/ld+json \ 
				 application/manifest+json \ 
				 application/rdf+xml \ 
				 application/rss+xml \ 
				 application/schema+json \ 
				 application/vnd.geo+json \ 
				 application/vnd.ms-fontobject \ 
				 application/x-font-ttf \ 
				 application/x-javascript \ 
				 application/x-web-app-manifest+json \ 
				 application/xhtml+xml \ 
				 application/xml \ 
				 font/eot \ 
				 font/opentype \ 
				 image/bmp \ 
				 image/svg+xml \ 
				 image/vnd.microsoft.icon \ 
				 image/x-icon \ 
				 text/cache-manifest \ 
				 text/css \ 
				 text/html \ 
				 text/javascript \ 
				 text/plain \ 
				 text/vcard \ 
				 text/vnd.rim.location.xloc \ 
				 text/vtt \ 
				 text/x-component \ 
				 text/x-cross-domain-policy \ 
				 text/xml 
		 </IfModule> 
	 </IfVersion> 

	 <IfVersion <= 2.3.6> 
		 AddOutputFilterByType DEFLATE application/atom+xml \ 
			 application/javascript \ 
			 application/json \ 
			 application/ld+json \ 
			 application/manifest+json \ 
			 application/rdf+xml \ 
			 application/rss+xml \ 
			 application/schema+json \ 
			 application/vnd.geo+json \ 
			 application/vnd.ms-fontobject \ 
			 application/x-font-ttf \ 
			 application/x-javascript \ 
			 application/x-web-app-manifest+json \ 
			 application/xhtml+xml \ 
			 application/xml \ 
			 font/eot \ 
			 font/opentype \ 
			 image/bmp \ 
			 image/svg+xml \ 
			 image/vnd.microsoft.icon \ 
			 image/x-icon \ 
			 text/cache-manifest \ 
			 text/css \ 
			 text/html \ 
			 text/javascript \ 
			 text/plain \ 
			 text/vcard \ 
			 text/vnd.rim.location.xloc \ 
			 text/vtt \ 
			 text/x-component \ 
			 text/x-cross-domain-policy \ 
			 text/xml 
	 </IfVersion> 
 </pre>

Back