Advertisement
Guest User

Untitled

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