How do I "leverage browser caching"
-
Google is telling me to "leverage browser caching" and put a freshness factor of 1 week on images used on my site. http://www.1stclassdriving.co.uk.
Try as i may I cannot find out how to do this.I'm running two sites - http://www.1stclassdriving.co.uk. on a shared hosting package with Easyspace and http://www.croydondrivingschool.co.uk with Fasthosts, both under windows with asp scripting.
Can anyone point me to any tutorials or guide me as to how I do this please
-
Hi
To Leverage browser caching speeds up your site as it will only cause common resources to be loaded once rather than every time you load a page on your site or revisit the site. In order to leverage browser caching I would suggest editing your web.config file if you are on an IIS server or in the .htaccess file if you are on an Apache server. Both of these will involve you making an entry into either of these files and shouldn't require your hosting company. I regularly work with both, but in particular Apache servers and I often drop the standard code in to leverage this and speed the site up. One other noticeable speed enhancement I would recommend is gzip compression which can be carried out in a similar manner. If you have anymore questions about any of this don't hesitate to give me a shout on here
-
Dear Matt,
I don't get it...
Is the answer in the programming of the site (for example through the web.config) or something to do in the IIS (which means the hosting company should do it...?) ?
Also, caching only helps the second time the same user loads the page doesn't it?
THanks
-
Glad I could help Brian and welcome to the community, by the way
-
Brilliant - works fine - many thanx Matt
-
Hi Brian
I think you might find this helpful - http://stackoverflow.com/questions/6634302/how-to-leverage-browser-caching-at-asp-net-iis-7-5
and...
http://stackoverflow.com/questions/642954/iis7-cache-control
You should be able to do this by making/editing (if you already have one) a web.config file in your root folder, which is explained in the article above.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Google crawler showing cache of another page
For the page http://www.thinkdigit.com/top-products/Laptops-and-PCs/top-10-laptops-124.php google is showing another page in cache (http://www.thinkdigit.com/top-products/Ultrabooks/top-10-ultrabooks-153.php). Please let me know how this happened and how to correct it.
On-Page Optimization | | 9dot90 -
Google cache tool help
This link is for the Ebay Google cache - http://webcache.googleusercontent.com/search?q=cache:www.ebay.com&strip=1 I wanted to do the same for my homepage so I switched out the urls and it worked. When I try to get a different link in there such as mysite.com/category it wont work. I know my pages are indexed. Any ideas why it wont work for other pages?
On-Page Optimization | | EcommerceSite0 -
Difference between "And" and(!) "-"
I have a brand name "Smith and Jones". I am looking for the current best way to refer to the name in titles and text on my site. The manufactureres website is smithandjones.com . The H1 on their home page uses Smith & Jones. The 2 versions are used throughout their site. In a prior thread (http://www.seomoz.org/q/and-vs) the answer was to use nothing ie "smith jones". I was thinking that a "-" might be better since google says it tends to show a strong relationship between the 2 words. What do you think? Thanks Handcrafter
On-Page Optimization | | stephenfishman0 -
Meta tag "revisit after" - useful?
Hi everybody, I've rarely seen the "revisit after" meta tag during the last 1,5 years. As some of my current client websites are still using it and I'm not sure, if it's still usefull/has any effect, I'd like to hear from the community. Any advices/hints/experiences with the tag? Thanks in advance and cheers from Germany Sven
On-Page Optimization | | targi420 -
Using rel="nofollow"
Hello, Quick question really, as far as the SERPs are concerned If I had a site with say 180 links on each page - 80 above suggested limit, would putting 'rel="nofollow"' on 80 of these be as good as only having 100 links per page? Currently I have removed the links, but wereally need these as they point to networked sites that we own and are relevant... But we dont want to look spammy... An example of one of the sites without the links can be seen here whereas a site with the links can be seen here You can see the links we are looking to keep (at the bottom) and why... Thanks
On-Page Optimization | | TwoPints0 -
Does having a "+" in a URL hurt SEO? Would much value be gained changing it to a hyphen?
There's a site that contains "+" signs in the URL in order to call different information for the content on the page. Would it be better to change those to hyphens (-), or not that much value will be gained, so leave them as is? Thanks!
On-Page Optimization | | MitchellStoker0 -
Why is cache being shown like this
Google is showing strange cache for the site - http://shop.surfcity.co.nz/ . Why is 404 error being displayed ?
On-Page Optimization | | seoug_20050 -
Does link text "more information" have more weight than a normal link?
Does the anchor text "more information" hold any additional weight than any other anchor text? My suspicion is no, but just wanted to confirm.
On-Page Optimization | | nicole.healthline0