Gbp Central For Wordpress Support

Browser caching is when a web browser stores recently used information including graphic logos, web forms, comment sections templates, and other media content such as embedded video and/or flash advertisements. These advertisements, embedded video and many other additions to a website can slow down one’s connection considerably by consuming large amounts of bandwidth.

This happens when the user’s web browser sends a ping request to the server location that hosts the webpage to request data like webpage graphics, comment forms, embedded video and more. When massive amounts of bandwidth are consumed in downloading this content, it can not only slow the browser connection but also other Internet services. An Internet connection is especially slowed down when there are many items on a website that need to be loaded. Each file that is loaded onto the website also has to be loaded each time the user visits the page.

Browser caching attempts to relieve this problem by caching, or storing recently used documents on the user’s web browser so that the web page is easily accessed in the future. However, leverage browsing entails selecting which browser options that are to be cached. While the website administrator may not want to cache the web page logo graphics and page headline, some items such as comment forms or other commonly updated items should be leveraged when cached so that they’re updated each time.

Leverage browsing allows the user to actively keep their web site updated to users with all speed Internet connections without slowdown or browser freezing. Simple page graphics and the like can be set to be cached every so often because they typically rarely require updating as do other portions of a webpage.

In order for an individual to enable leverage browser caching, they will need to edit the HTTP headers within their webpage to set the expiration date on specific files. This will prevent these certain files from caching each time the person visits the web page.

The web page administrator must locate the .htaccess file in the domain root and edit it to include some expiration file dates. The .htaccess file should be displayed in an FTP client when browsing for it by performing a search. Once found, the person can edit the file to include an “Expires Caching” section input into the HTML field as “”##EXPIRES CACHING##” and then listing which specific files with specific expiration dates to follow.

The next label of text after “”##EXPIRES CACHING##”" that the web page administrator should input is “ExpiresActive On” followed by line after line of the label “ExpiresByType”. Next to each “ExpiresByType” should be the file type/location and the expiration time for each. For example, a line could read “ExpiresByType image/jpeg “access plus 4 months” to instruct the caching for that particular item to perform a cache update every four months. The text body should then be ended with the text “”##EXPIRES CACHING##”" once again to close the list. When done, the text should be saved as the file it as rather than saved as a .txt file.

This example code used on this website.

## EXPIRES CACHING ##
# Enable expiration control
ExpiresActive On

# Default expiration: 1 hour after request
ExpiresDefault “now plus 1 hour”

# CSS and JS expiration: 2 week after request
ExpiresByType text/css “now plus 2 weeks”
ExpiresByType application/javascript “now plus 2 weeks”
ExpiresByType application/x-javascript “now plus 2 weeks”

# Image files expiration: 1 month after request
ExpiresByType image/bmp “now plus 1 month”
ExpiresByType image/gif “now plus 1 month”
ExpiresByType image/jpeg “now plus 1 month”
ExpiresByType image/jp2 “now plus 1 month”
ExpiresByType image/pipeg “now plus 1 month”
ExpiresByType image/png “now plus 1 month”

ExpiresByType image/svg+xml “now plus 1 month”
ExpiresByType image/tiff “now plus 1 month”
ExpiresByType image/vnd.microsoft.icon “now plus 1 month”
ExpiresByType image/x-icon “now plus 1 month”
ExpiresByType image/ico “now plus 1 month”
ExpiresByType image/icon “now plus 1 month”
ExpiresByType text/ico “now plus 1 month”
ExpiresByType application/ico “now plus 1 month”
ExpiresByType image/vnd.wap.wbmp “now plus 1 month”
ExpiresByType application/vnd.wap.wbxml “now plus 1 month”
ExpiresByType application/smil “now plus 1 month”

# Audio files expiration: 1 month after request
ExpiresByType audio/basic “now plus 1 month”
ExpiresByType audio/mid “now plus 1 month”
ExpiresByType audio/midi “now plus 1 month”
ExpiresByType audio/mpeg “now plus 1 month”
ExpiresByType audio/x-aiff “now plus 1 month”
ExpiresByType audio/x-mpegurl “now plus 1 month”
ExpiresByType audio/x-pn-realaudio “now plus 1 month”
ExpiresByType audio/x-wav “now plus 1 month”

# Movie files expiration: 1 month after request
ExpiresByType application/x-shockwave-flash “now plus 1 month”
ExpiresByType x-world/x-vrml “now plus 1 month”
ExpiresByType video/x-msvideo “now plus 1 month”
ExpiresByType video/mpeg “now plus 1 month”
ExpiresByType video/mp4 “now plus 1 month”
ExpiresByType video/quicktime “now plus 1 month”
ExpiresByType video/x-la-asf “now plus 1 month”
ExpiresByType video/x-ms-asf “now plus 1 month”
<FilesMatch “\.(ico|jpg|jpeg|png|gif|js|css|swf)$”>
ExpiresDefault “access plus 1 month”

## EXPIRES CACHING ##

Govindji Patel
I am Author/Publisher WordPress Coach and Consultant who enjoys writing tutorials and support and help wordpress users build better WordPress website/blog. Read Testimonials
Govindji Patel
Govindji Patel