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
-
I analysis my domain (http://yourdigibuddy.com/) on moz domain analysis. But there is not data show and show message "No data here". What should I do?
_ I analysis my domain (http://yourdigibuddy.com/) on Moz domain analysis. But there is not data show and show the message "No data here". What should I do?_
On-Page Optimization | | MelissaDooley0 -
Thoughts on adding "near me" to title tag for local SEO?
I want to lean out my title tags and will most likely be doing an A/B test. They currently have the "Near Me" modifier in there, which I believe Google can distinguish local SEO without it. Thoughts?
On-Page Optimization | | imjonny1230 -
Sale page ranking for "[blank] for sale" keywords
My company's Ecommerce site has a sale category that is currently out performing some of our normal categories in the SERPs for "[blank] for sale" keywords. For example the sale category landing page is ranking for the keyword "vegetable seeds for sale" rather than the vegetable seed category. Has anyone ever dealt with a similar situation to this? or does anyone have general advice for optimizing (or weakening) sale pages?
On-Page Optimization | | Scoleman1 -
When you think of Firefox, do you think of a browser?
I do. Firefox is a browser. Mozilla's website is quite authoritative and gets a lot of traffic. Firefox is a browser and has been for a very long time. What might be preventing en-US content about Firefox from appearing in en-US search for "browser"? https://www.google.com/search?q=browser&lr=lang_en&pws=0 Results for that search includes such things as... The Blackboard browser checker utility page:https://help.blackboard.com/Learn/Student/Getting_Started/Browser_Support/Browser_Checker The Ensembl genome browser page:http://grch37.ensembl.org/index.html Dozens of pages for things that aren't browsers but just happen to use the word "browser" in their URL or content Pages for any number of web browsers, including almost every web browser you can imagine except Firefox If you force results in other languages, Firefox shows up (it was #7 in Danish SERP when I typed this): https://www.google.com/search?q=browser&pws=0&lr=lang_da If you do a site-specific search, plenty of Firefox pages rank: https://www.google.com/search?lr=lang_en&pws=0&q=browser+site%3Amozilla.org The en-US site continues to rank well for all sorts of other unbranded terms that include the word "browser" -- it's in the top 5 for "private browser" and "fast browser". The attached image shows what "browser" searches that produced en-US results looks like in webmaster tools. There are dots where the site appears in the top 20 (which is probably its appropriate ranking) and then it immediately disappears. There are short lines where a new page on the site starts to rank for "browser" (as in the case ofFirefox Focus), and then those disappear too. Is the en-US Firefox site being penalized for some reason on this keyword? Does anyone see some obvious misconfiguration causing it to fall out of rankings? Thanks. wE0Bn
On-Page Optimization | | hoosteeno0 -
Cache missing on SERP
Hi, My website cache is missing on SERP month ago and its not come back anymore also same on description too. I checked on my coding META Description still there.I no idea about this how to retrieve its back to show on SERP.Any suggestion about this?Thank you.,
On-Page Optimization | | Joycee_psp0 -
Inches or " Feet or ' Does Google translate the symbols?
I have a client who sells things that the size is important. In their industry some people say "15 Inch Blue Widget" and others say "15" Blue Widget" using the symbol " for inches. On the page I know we could say both to cover all the bases but I want to get the title right. In their industry there is not one more preferred than the other. Does anybody know if Google translates ' to feet and " to inches. Should I work both into the title for a product or only one?
On-Page Optimization | | JoshuaLindley0 -
Is it redundant to include a redirect to my canonical domain (www) in my .htaccess file since I already have the correct rel="canonical" in my header?
I've been reading the benefits of each practice, but not found anyone mentioning whether it's really necessary to do both? Personally I try to stay clear of .htaccess rewrites unless it's absolutely necessary, since because I've read they can slow down a website.
On-Page Optimization | | HOPdigital0 -
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