Question ::::::
I have been trying to create a site (Hosted on x10hosting). So I have been searching how to build a fast site. And I got a page to improve Jquery codes. Below is the link to the page.
In that page I read that including Jquery framework codes from Google.com can speed up the site. And I also find out the cause to it, as the Google.com caches the Jquery framework code so that user doesn’t have to download the Jquery framework code again and again. So I was thinking that can I do that too with my site. Well I’m using Linux based site. So can anyone suggest a page or a code to cache scripts or images in my site so that user doesn’t have to download it again and again.
Chances are that as long as you use normal, static files (ending in
.js,.gifand so on), your server already does caching for you.You can find out using a tool like Firebug in Firefox, or the built-in developer console in Chrome. The easiest way to get there is by right-clicking an element, and choosing “Inspect element”.
If you switch to the “Net” tab, you will see all the requests that had to be made for the current file.
304 not modifiedand(from cache)means that the resource was not loaded again. If you see those for static resources, there is some caching already in place. The main document usually gets reloaded every time; the same goes for tracking codes like Google Analytics, and Ads. On a big site, you will expect to see a number of200 OKrequests as well.In the tab, you can also find out the response headers of each resource. This tutorial could help deciphering what each header means: Caching Tutorial for web authors and webmasters
Fine-tuning caching is a very complex field. Here is a question that deals with caching images on Apache. Stack Overflow has a variety of existing questions on this.
If you want to generally look into speeding up your site, check out this question: Optimizations to reduce website loading time