Slow Website (3 Articles)

How to speed up your site by remote caching static content

Even though almost all sites are dynamic nowadays they still serve a lot of static content. Static content is content that is not generated on the fly and does not change often, i.e. all graphics, videos and most importantly site css and javascripts. If your visitors come back often to your site it makes sense to instruct their browsers to keep the static content locally for a certain period of time and re-use it. For this purpose we can use Apache mod_expires. It can be enabled in a local .htaccess file where you can specify all of its rules too. Here is an example: [crayon-58866dbc34849863249309/] The above rules give specific expiration periods for each content type such as text, images, css etc. The counter starts when the content is accessed once and then to it is added certain predefined period resulting in expiration date. Only after this expiration date the remote browser is supposed to re-download the content unless the user clears browser cache manually. Caching static content at visitors' end with mod_expires can significantly speed up your site and decrease the server load. Static content is usually the largest and slowest to download. Enabling mod_expires can be very useful especially to forums, chats or other sites where same users revisit them…

File downloads from my site do not complete

The reasons for such problems vary and if you search the web for 'corrupted downloads' you will find an extraordinary number of related pages. This is definitely a global problem which usually includes the following: - Network and connectivity issues and / or interruptions. - Apache / Web scripts settings - by default the web protocol (HTTP) is NOT designed for handling large data transfers. This means that every webserver is optimized for faster page rendering instead of reliable file transfers. Furthermore there are many configuration timeouts and limits to prevent heavy and long web operations which might overload the webserver and slow it down. - Browser problems - some web browsers, especially Microsoft's Internet Explorer, have problems with handling large file downloads. The only way to have a reliable web download is by using a download manager. SiteGround recommends TrueDownloader - it is free and open source.…

Common reasons for a site to load slowly

The time for loading a web site depends mostly on: 1. The number / size of external resources included in the site; 2. Properly resized images to their visible size; 3. The database queries executed while the site loads. Examples: You have included RSS feeds on your page(s). In order to display the RSS feeds, your web site needs to retrieve them from remote servers. As each connection to a remote server takes some time, the more RSS feeds a page has, the slower it will load. You have a picture with dimensions of 1024x768, which is 1MB, and a small thumbnail that shows a preview of this picture. It is a common mistake to use the same unresized large image as the thumbnail. The proper action would be to resize the large picture to a smaller image that matches exactly the size of the thumbnail in pixels. You use database-driven application for your website and have added many modules for additional functionality. Some of them are not even very popular and you are not sure how well optimized they are. Others you do not even use actively any more, but you have not removed them after testing them initially. The additional modules will generate database queries at each visit to your website. If these queries become too many or some of them need too much time to be executed, your website will load slowly. In order to speed up your site we recommend: Decreasing the number of external resources on your site. Optimizing the size of the images used on your website. Decrease the number of additionally installed modules / components for your application. Decrease any additional / extra features in your site like searches, statistics and others. Check the internet for specific optimization instructions for the application you are using. More information on how to optimize your website can be found in our website optimization tutorial…