Advertisement
sabber

Seped Up Wordpress website

Jul 21st, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. https://gtmetrix.com/analyze.html
  2.  
  3. https://tools.pingdom.com
  4.  
  5. Auto optimize
  6. GZip Ninja Speed Compressio
  7.  
  8. Give the code in the httdoc dile wp font page below
  9.  
  10. <IfModule mod_expires.c>
  11. # Enable expirations
  12. ExpiresActive On
  13. # Default directive
  14. ExpiresDefault "access plus 1 month"
  15. # My favicon
  16. ExpiresByType image/x-icon "access plus 1 year"
  17. # Images
  18. ExpiresByType image/gif "access plus 1 month"
  19. ExpiresByType image/png "access plus 1 month"
  20. ExpiresByType image/jpg "access plus 1 month"
  21. ExpiresByType image/jpeg "access plus 1 month"
  22. # CSS
  23. ExpiresByType text/css "access 1 month"
  24. # Javascript
  25. ExpiresByType application/javascript "access plus 1 year"
  26. </IfModule>
  27.  
  28.  
  29.  
  30. //Second Part Only Code
  31.  
  32. # START GZIP COMPRESSION
  33. <IfModule mod_deflate.c>
  34. <IfModule mod_headers.c>
  35. Header append Vary User-Agent env=!dont-vary
  36. </IfModule>
  37. <IfModule mod_filter.c>
  38. AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
  39. <IfModule mod_mime.c>
  40. # DEFLATE by extension
  41. AddOutputFilter DEFLATE js css htm html xml
  42. </IfModule>
  43. </IfModule>
  44. </IfModule>
  45. # END GZIP COMPRESSION
  46.  
  47.  
  48. # START Browser Caching
  49. <IfModule mod_expires.c>
  50. ExpiresActive On
  51. ExpiresByType text/css “access plus 1 month”
  52. ExpiresByType text/javascript “access plus 1 month”
  53. ExpiresByType text/html “access plus 1 month”
  54. ExpiresByType application/javascript “access plus 1 month”
  55. ExpiresByType application/x-javascript “access plus 1 month”
  56. ExpiresByType application/xhtml-xml “access plus 1 month”
  57. ExpiresByType image/gif “access plus 1 month”
  58. ExpiresByType image/jpeg “access plus 1 month”
  59. ExpiresByType image/png “access plus 1 month”
  60. ExpiresByType image/x-icon “access plus 1 month”
  61. </IfModule>
  62. # END Caching
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement