Articles & Code Snippets


Leverage browser caching

Leverage browser caching


How to add Expires headers

<IfModule mod_expires.c>
	ExpiresActive On
	ExpiresDefault "access plus 1 month"
	ExpiresByType image/x-icon "access plus 1 year”

	# Images
	ExpiresByType image/gif "access plus 1 month"
	ExpiresByType image/png "access plus 1 month"
	ExpiresByType image/jpg "access plus 1 month"
	ExpiresByType image/jpeg "access plus 1 month"

	# CSS
	ExpiresByType text/css "access 1 month”

	# Javascript
	ExpiresByType text/javascript "access plus 1 week"
	ExpiresByType application/x-javascript "access plus 1 week"
	ExpiresByType application/javascript "access plus 1 week"	
</IfModule>
web


Archives

Just feel like saying Hi?

  1 (903) NEGRARU phone
  email