By editor, 27 October, 2016 Question How to speed up the site by compressing and caching your content with .htaccess ? How to use Apache Cache-Control for browser caching using .htaccess file ? Example: # BEGIN Cache-Control Headers <ifModule mod_headers.c> #31104000=1Y, 2592000=1M, 604800=1W, 86400=1D 3600=1H # Icones, Images .... (ico|jpe?g|png|gif|swf) <filesMatch "\.(ico)$"> Header set Cache-Control "max-age=2592000, public" </filesMatch> # Fonts <filesMatch "\.(eot|otf|svg|ttf|woff)$"> Header set Cache-Control "max-age=31104000, public" </filesMatch> </ifModule> Tags Server SEO Comments You must have JavaScript enabled to use this form. Your name Subject Comment About text formats Plain text No HTML tags allowed. Lines and paragraphs break automatically. Web page addresses and email addresses turn into links automatically.
Comments