krot

pageSpeed

Dec 23rd, 2015
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wordpress plagin:
  2. WP-HTML-Compression //<-изменяет вид ссылок
  3.  
  4. htac
  5. <IfModule deflate_module>
  6. AddOutputFilterByType DEFLATE text/html
  7. AddOutputFilterByType DEFLATE application/javascript
  8. AddOutputFilterByType DEFLATE text/javascript
  9. AddOutputFilterByType DEFLATE text/css
  10. #Handle browser specific compression requirements
  11. BrowserMatch ^Mozilla/4 gzip-only-text/html
  12. BrowserMatch ^Mozilla/4.0[678] no-gzip
  13. BrowserMatch bMSIE !no-gzip !gzip-only-text/html
  14. SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
  15. </IfModule>
  16. <IfModule expires_module>
  17. ExpiresActive on
  18. ExpiresDefault "access plus 1 month"
  19.  
  20. # CSS
  21. ExpiresByType text/css "access plus 1 year"
  22.  
  23. # Data interchange
  24. ExpiresByType application/atom+xml "access plus 1 hour"
  25. ExpiresByType application/rdf+xml "access plus 1 hour"
  26. ExpiresByType application/rss+xml "access plus 1 hour"
  27.  
  28. ExpiresByType application/json "access plus 0 seconds"
  29. ExpiresByType application/ld+json "access plus 0 seconds"
  30. ExpiresByType application/schema+json "access plus 0 seconds"
  31. ExpiresByType application/vnd.geo+json "access plus 0 seconds"
  32. ExpiresByType application/xml "access plus 0 seconds"
  33. ExpiresByType text/xml "access plus 0 seconds"
  34.  
  35. # Favicon (cannot be renamed!) and cursor images
  36. ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
  37. ExpiresByType image/x-icon "access plus 1 week"
  38.  
  39. # HTML
  40. ExpiresByType text/html "access plus 0 seconds"
  41.  
  42. # JavaScript
  43. ExpiresByType application/javascript "access plus 1 year"
  44. ExpiresByType application/x-javascript "access plus 1 year"
  45. ExpiresByType text/javascript "access plus 1 year"
  46.  
  47. # Manifest files
  48. ExpiresByType application/manifest+json "access plus 1 year"
  49.  
  50. ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
  51. ExpiresByType text/cache-manifest "access plus 0 seconds"
  52.  
  53. # Media files
  54. ExpiresByType audio/ogg "access plus 1 month"
  55. ExpiresByType image/bmp "access plus 1 month"
  56. ExpiresByType image/gif "access plus 1 month"
  57. ExpiresByType image/jpeg "access plus 1 month"
  58. ExpiresByType image/png "access plus 1 month"
  59. ExpiresByType image/svg+xml "access plus 1 month"
  60. ExpiresByType image/webp "access plus 1 month"
  61. ExpiresByType video/mp4 "access plus 1 month"
  62. ExpiresByType video/ogg "access plus 1 month"
  63. ExpiresByType video/webm "access plus 1 month"
  64.  
  65. # Web fonts
  66.  
  67. # Embedded OpenType (EOT)
  68. ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
  69. ExpiresByType font/eot "access plus 1 month"
  70.  
  71. # OpenType
  72. ExpiresByType font/opentype "access plus 1 month"
  73.  
  74. # TrueType
  75. ExpiresByType application/x-font-ttf "access plus 1 month"
  76.  
  77. # Web Open Font Format (WOFF) 1.0
  78. ExpiresByType application/font-woff "access plus 1 month"
  79. ExpiresByType application/x-font-woff "access plus 1 month"
  80. ExpiresByType font/woff "access plus 1 month"
  81.  
  82. # Web Open Font Format (WOFF) 2.0
  83. ExpiresByType application/font-woff2 "access plus 1 month"
  84.  
  85. # Other
  86. ExpiresByType text/x-cross-domain-policy "access plus 1 week"
  87. </IfModule>
RAW Paste Data