<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>apache Archives - Michael Sunarlim</title>
	<atom:link href="https://sunarlim.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>https://sunarlim.com/tag/apache/</link>
	<description>Random blurbs about web development, e-commerce and technology</description>
	<lastBuildDate>Wed, 27 Jan 2016 09:02:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.5</generator>

<image>
	<url>https://i0.wp.com/sunarlim.com/wp-content/uploads/2016/07/cropped-MS_Square_512x512.png?fit=32%2C32&#038;ssl=1</url>
	<title>apache Archives - Michael Sunarlim</title>
	<link>https://sunarlim.com/tag/apache/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">30613895</site>	<item>
		<title>How to enable browser caching &#038; gzip compression on Apache webserver</title>
		<link>https://sunarlim.com/2016/01/how-to-enable-browser-caching-gzip-compression-on-apache/</link>
					<comments>https://sunarlim.com/2016/01/how-to-enable-browser-caching-gzip-compression-on-apache/#respond</comments>
		
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Wed, 27 Jan 2016 08:57:51 +0000</pubDate>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[performance]]></category>
		<guid isPermaLink="false">https://sunarlim.com/?p=1780</guid>

					<description><![CDATA[<p>Page speed is vital for SEO. The faster your website or web page loads, the better chance of it having better position in the search results. There are 2 most essential components that you need to be sure have been implemented on your website or server. They take only a few minutes to set up but give the most noticeable impact to the site's performance.</p>
<p>The post <a href="https://sunarlim.com/2016/01/how-to-enable-browser-caching-gzip-compression-on-apache/">How to enable browser caching &#038; gzip compression on Apache webserver</a> appeared first on <a href="https://sunarlim.com">Michael Sunarlim</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Page speed is vital for SEO. The faster your website or web page loads, the better chance of it having better position in the search results. To measure and get guideline on what to be done to get faster website, you can use online tools like <a href="https://developers.google.com/speed/pagespeed/insights/" target="_blank">Google PageSpeed Insights</a>, <a href="https://gtmetrix.com/" target="_blank">GTMetrix</a> or <a href="http://www.webpagetest.org/" target="_blank">WebPagetest</a>.</p>
<p>Each tool will probably give you a handful of suggestions in how to improve your site&#8217;s speed. However there are 2 most essential components that you need to be sure have been implemented on your website or server. They take only a few minutes to set up but give the most noticeable impact to the site&#8217;s performance.</p>
<p>If you are using Apache webserver, below are the instructions to add them.</p>
<h2>Enable browser caching</h2>
<p>Add this into your <code>.htaccess</code> file:</p>
<pre class="lang:apache decode:true">## ADD BROWSER CACHING ##
&lt;IfModule mod_expires.c&gt;
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
&lt;/IfModule&gt;</pre>
<h2>Enable gzip compression</h2>
<p>Add this into your <code>.htaccess</code> file:</p>
<pre class="lang:apache decode:true ">## ADD GZIP COMPRESSION ##
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml text/javascript application/x-javascript application/x-httpd-php
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
Header append Vary User-Agent env=!dont-vary</pre>
<p>Sometimes due to the server&#8217;s configuration, the gzip compression works on every other file except CSS and JS files. If this happens, you could try adding this before the <code>## ADD GZIP COMPRESSION ##</code>:</p>
<pre class="lang:apache decode:true ">## TYPES FIX ##
AddType text/css .css
AddType text/javascript .js</pre>
<p>&nbsp;</p>
<p>That&#8217;s it. Give the site another test on page speed tools and see how much the score has improved.</p>
<p>The post <a href="https://sunarlim.com/2016/01/how-to-enable-browser-caching-gzip-compression-on-apache/">How to enable browser caching &#038; gzip compression on Apache webserver</a> appeared first on <a href="https://sunarlim.com">Michael Sunarlim</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sunarlim.com/2016/01/how-to-enable-browser-caching-gzip-compression-on-apache/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1780</post-id>	</item>
	</channel>
</rss>
