Web Site Speed – Improve Your Web Site Speed

Improve  Web Site Speed    .htaccess file

Page Load Time is a factor in search engine rankings. Web Site Speed  is factor for high website ranking . Page Speed Insights Tools is a performance optimization tool using webmaster for improve high speed web sites.website directly impacts search engine ranking. The back end includes the web servers, network connections, use of CDNs, and the end application and database servers your web hosting server.

Rules Page Web Site Speed :

  • Avoid landing page redirects
  • Enable compressing
  • Improve server response time
  • Leverage browser caching
  • Minify resources
  • Optimize images
  • Optimize CSS Delivery
  • Prioritize visible content
  • Remove render-blocking JavaScript
  • Use asynchronous scripts
  • Avoid plugins
  • Configure the viewport
  • Size content to viewport
  • Size tap targets appropriately
  • Use legible font sizes

Gzip compression helps web site to reduce the amount of data your server needs to send to your users,  speeds up the load time of your web site.                                            Insert these lines into the end of your .htaccess file for better web site speed

<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  Apache 2 – bundled with the mod_deflate module: The mod_deflate module provides the DEFLATE output filter that allows output from your server to be compressed before being sent to the client over net.

web speed site req

 Set Expires and Cache-Control headers with .htaccess

# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault “access plus 5 seconds”
ExpiresByType image/x-icon “access plus 2592000 seconds”
ExpiresByType image/jpeg “access plus 2592000 seconds”
ExpiresByType image/png “access plus 2592000 seconds”
ExpiresByType image/gif “access plus 2592000 seconds”
ExpiresByType application/x-shockwave-flash “access plus 2592000 seconds”
ExpiresByType text/css “access plus 604800 seconds”
ExpiresByType text/javascript “access plus 216000 seconds”
ExpiresByType application/javascript “access plus 216000 seconds”
ExpiresByType application/x-javascript “access plus 216000 seconds”
ExpiresByType text/html “access plus 600 seconds”
ExpiresByType application/xhtml+xml “access plus 600 seconds”

web site speed

Browser cache control

Browser cache control  header expires  and modify HTTP request and response headers. Headers can be merged, replaced or removed. Try including this code in your htaccess:

# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
<filesMatch “\.(ico|jpe?g|png|gif|swf)$”>
Header set Cache-Control “public”
<filesMatch “\.(css)$”>
Header set Cache-Control “public”
<filesMatch “\.(js)$”>
Header set Cache-Control “private”
<filesMatch “\.(x?html?|php)$”>
Header set Cache-Control “private, must-revalidate”


Check Results for This Blog Article Web site Speed


We will be happy to hear your thoughts

      Leave a reply