Advertisement
Guest User

Untitled

a guest
Aug 13th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. # BEGIN WP-HUMMINGBIRD-GZIP
  2.  
  3. <IfModule mod_deflate.c>
  4. <IfModule mod_setenvif.c>
  5. <IfModule mod_headers.c>
  6. SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
  7. RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
  8. </IfModule>
  9. </IfModule>
  10. <IfModule mod_filter.c>
  11. AddOutputFilterByType DEFLATE "application/atom+xml" \
  12. "application/javascript" \
  13. "application/json" \
  14. "application/ld+json" \
  15. "application/manifest+json" \
  16. "application/rdf+xml" \
  17. "application/rss+xml" \
  18. "application/schema+json" \
  19. "application/vnd.geo+json" \
  20. "application/vnd.ms-fontobject" \
  21. "application/x-font-ttf" \
  22. "application/x-font-opentype" \
  23. "application/x-font-truetype" \
  24. "application/x-javascript" \
  25. "application/x-web-app-manifest+json" \
  26. "application/xhtml+xml" \
  27. "application/xml" \
  28. "font/eot" \
  29. "font/opentype" \
  30. "font/otf" \
  31. "image/bmp" \
  32. "image/svg+xml" \
  33. "image/vnd.microsoft.icon" \
  34. "image/x-icon" \
  35. "text/cache-manifest" \
  36. "text/css" \
  37. "text/html" \
  38. "text/javascript" \
  39. "text/plain" \
  40. "text/vcard" \
  41. "text/vnd.rim.location.xloc" \
  42. "text/vtt" \
  43. "text/x-component" \
  44. "text/x-cross-domain-policy" \
  45. "text/xml"
  46.  
  47. </IfModule>
  48. <IfModule mod_mime.c>
  49. AddEncoding gzip svgz
  50. </IfModule>
  51.  
  52. </IfModule>
  53.  
  54. # END WP-HUMMINGBIRD-GZIP
  55.  
  56. # BEGIN WP-HUMMINGBIRD-BROWSER-CACHING
  57.  
  58. <IfModule mod_expires.c>
  59. ExpiresActive On
  60. ExpiresDefault A0
  61.  
  62. <FilesMatch "\.(txt|xml|js)$">
  63. ExpiresDefault A691200
  64. </FilesMatch>
  65.  
  66. <FilesMatch "\.(css)$">
  67. ExpiresDefault A691200
  68. </FilesMatch>
  69.  
  70. <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
  71. ExpiresDefault A691200
  72. </FilesMatch>
  73.  
  74. <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
  75. ExpiresDefault A691200
  76. </FilesMatch>
  77. </IfModule>
  78.  
  79. <IfModule mod_headers.c>
  80. <FilesMatch "\.(txt|xml|js)$">
  81. Header set Cache-Control "max-age=691200"
  82. </FilesMatch>
  83.  
  84. <FilesMatch "\.(css)$">
  85. Header set Cache-Control "max-age=691200"
  86. </FilesMatch>
  87.  
  88. <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
  89. Header set Cache-Control "max-age=691200"
  90. </FilesMatch>
  91.  
  92. <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
  93. Header set Cache-Control "max-age=691200"
  94. </FilesMatch>
  95. </IfModule>
  96.  
  97. # END WP-HUMMINGBIRD-BROWSER-CACHING
  98.  
  99. # BEGIN WordPress
  100.  
  101. <IfModule mod_rewrite.c>
  102. RewriteEngine On
  103. RewriteBase /
  104. RewriteRule ^index\.php$ - [L]
  105. RewriteCond %{REQUEST_FILENAME} !-f
  106. RewriteCond %{REQUEST_FILENAME} !-d
  107. RewriteRule . /index.php [L]
  108. </IfModule>
  109.  
  110. # END WordPress
  111.  
  112. # BEGIN WP-HUMMINGBIRD-CACHING
  113.  
  114. <IfModule mod_expires.c>
  115. ExpiresActive On
  116. ExpiresDefault A0
  117.  
  118. <FilesMatch "\.(txt|xml|js)$">
  119. ExpiresDefault A691200
  120. </FilesMatch>
  121.  
  122. <FilesMatch "\.(css)$">
  123. ExpiresDefault A691200
  124. </FilesMatch>
  125.  
  126. <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
  127. ExpiresDefault A691200
  128. </FilesMatch>
  129.  
  130. <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
  131. ExpiresDefault A691200
  132. </FilesMatch>
  133. </IfModule>
  134.  
  135. <IfModule mod_headers.c>
  136. <FilesMatch "\.(txt|xml|js)$">
  137. Header set Cache-Control "max-age=691200"
  138. </FilesMatch>
  139.  
  140. <FilesMatch "\.(css)$">
  141. Header set Cache-Control "max-age=691200"
  142. </FilesMatch>
  143.  
  144. <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
  145. Header set Cache-Control "max-age=691200"
  146. </FilesMatch>
  147.  
  148. <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
  149. Header set Cache-Control "max-age=691200"
  150. </FilesMatch>
  151. </IfModule>
  152.  
  153. # END WP-HUMMINGBIRD-CACHING
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement