Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Apparently all this time we used AddFilter which uses extensions and …

…not mime-types. Switching to AddFilterByType, deprecated or not, it still works.
  • Loading branch information...
commit 211194ef168d59ac8a0777aa64237af5c858fb2b 1 parent af740ae
Sergey Chernyshev authored

Showing 1 changed file with 25 additions and 25 deletions. Show diff stats Hide diff stats

  1. 50  .htaccess
50  .htaccess
@@ -56,41 +56,41 @@ AddType	text/vtt				vtt
56 56
 # Compression: http://code.google.com/speed/page-speed/docs/payload.html#GzipCompression
57 57
 # --------------------------------------------------------------------------------------
58 58
 <IfModule mod_deflate.c>
59  
-	AddOutputFilter DEFLATE application/atom+xml
60  
-	AddOutputFilter DEFLATE application/json
61  
-	AddOutputFilter DEFLATE application/xhtml+xml
62  
-	AddOutputFilter DEFLATE application/xml
63  
-	AddOutputFilter DEFLATE text/css
64  
-	AddOutputFilter DEFLATE text/html
65  
-	AddOutputFilter DEFLATE text/plain
66  
-	AddOutputFilter DEFLATE text/x-component
67  
-	AddOutputFilter DEFLATE text/xml
  59
+	AddOutputFilterByType DEFLATE application/atom+xml
  60
+	AddOutputFilterByType DEFLATE application/json
  61
+	AddOutputFilterByType DEFLATE application/xhtml+xml
  62
+	AddOutputFilterByType DEFLATE application/xml
  63
+	AddOutputFilterByType DEFLATE text/css
  64
+	AddOutputFilterByType DEFLATE text/html
  65
+	AddOutputFilterByType DEFLATE text/plain
  66
+	AddOutputFilterByType DEFLATE text/x-component
  67
+	AddOutputFilterByType DEFLATE text/xml
68 68
 	
69 69
 	# The following MIME types are in the process of registration
70  
-	AddOutputFilter DEFLATE application/xslt+xml
71  
-	AddOutputFilter DEFLATE image/svg+xml
  70
+	AddOutputFilterByType DEFLATE application/xslt+xml
  71
+	AddOutputFilterByType DEFLATE image/svg+xml
72 72
 	
73 73
 	# The following MIME types are NOT registered
74  
-	AddOutputFilter DEFLATE application/mathml+xml
75  
-	AddOutputFilter DEFLATE application/rss+xml
  74
+	AddOutputFilterByTypeByType DEFLATE application/mathml+xml
  75
+	AddOutputFilterByTypeByType DEFLATE application/rss+xml
76 76
 	
77 77
 	# JavaScript has various MIME types
78  
-	AddOutputFilter DEFLATE application/javascript
79  
-	AddOutputFilter DEFLATE application/x-javascript
80  
-	AddOutputFilter DEFLATE text/ecmascript
81  
-	AddOutputFilter DEFLATE text/javascript
  78
+	AddOutputFilterByType DEFLATE application/javascript
  79
+	AddOutputFilterByType DEFLATE application/x-javascript
  80
+	AddOutputFilterByType DEFLATE text/ecmascript
  81
+	AddOutputFilterByType DEFLATE text/javascript
82 82
 
83 83
 	# .ico files and other compressible images
84  
-	AddOutputFilter DEFLATE image/vnd.microsoft.icon
85  
-	AddOutputFilter DEFLATE image/x-icon
86  
-	AddOutputFilter DEFLATE image/bmp
87  
-	AddOutputFilter DEFLATE image/tiff
88  
-	AddOutputFilter DEFLATE application/pdf
  84
+	AddOutputFilterByType DEFLATE image/vnd.microsoft.icon
  85
+	AddOutputFilterByType DEFLATE image/x-icon
  86
+	AddOutputFilterByType DEFLATE image/bmp
  87
+	AddOutputFilterByType DEFLATE image/tiff
  88
+	AddOutputFilterByType DEFLATE application/pdf
89 89
 
90 90
 	# compressible fonts (.woff is already compressed)
91  
-	AddOutputFilter DEFLATE font/opentype
92  
-	AddOutputFilter DEFLATE application/x-font-ttf
93  
-	AddOutputFilter DEFLATE application/vnd.ms-fontobject
  91
+	AddOutputFilterByType DEFLATE font/opentype
  92
+	AddOutputFilterByType DEFLATE application/x-font-ttf
  93
+	AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
94 94
 </IfModule>
95 95
 
96 96
 # ----------------------------------------------------------------------

0 notes on commit 211194e

Please sign in to comment.
Something went wrong with that request. Please try again.