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
-
"og:description" vs. name="description"
According to Rock Your SEO with Structured Social Sharing "OG description overrides meta description tag." Moz Crawl Diagnostics seems to ignore og:description and only look for meta name="description" - does that mean my meta descriptions tags should be meta name?
On-Page Optimization | | leighw0 -
What is the danger of adding rel="prev" and rel="next"...
Our search results pages are, unfortunately, heavily indexed by Google. While the long term plan is to replace these somehow with our product pages, in the short term we are doing all we can to improve things. One of our issues is that we don't have a canonical link or rel="next" or rel="prev" on these pages. Would like to add these to consolidate duplicate content as well as help Google drill down within these pages to crawl the links within them. The concern is... If ten people arrive at our site via: http://www.oursite.com/?goodstuff=puppies&page=1 and 10 people also arrive at our site via: http://www.oursite.com/?goodstuff=puppies&page=2 Would adding rel="next" and rel="prev" potentially have a damaging effect on us by removing one of these entry points and therefore removing 10 potential visitors? Or would it still show both links, but instead would show the canonical in both locations? In short, could adding these tags actually backfire? Thanks very much! Craig
On-Page Optimization | | TheCraig0 -
The "100 links/page recommendation" - Do Duplicate Links Count?
We have way too many links on our homepage. The PageRank Link Juice Calculator (www.ecreativeim.com/pagerank-link-juice-calculator.php) counts them to 300. But all of them are not unique, that is some links point to the same URL. So my question: does the "100 links/page recommendation" refer to all anchors on the page or only to unique link target URLs? I know "100" is just a standard recommendation.
On-Page Optimization | | TalkInThePark0 -
"And" vs "&"
I blog for hotels and I am wondering whether it is best to have on a wordpress tagline the name of the hotel such as Holiday Inn and Suites vs Holiday Inn & Suites. In Google AdWords, the "and" keyword always beats out the "&" word in exact search. The "&" just always looks cleaner. Also, when I refer to the hotel within a blog post, should I use the "and" or "&" in the name? Please help me understand which is best for seo. Thank you!
On-Page Optimization | | lwilkins0 -
Should I make All My "Non-Money" Pages No-Follow?
I'm branching out here from my novice seo status . . . In an effort to channel page rank to the pages I wish to rank for should I make all my non-money pages no-follow. Pages like "contact us", "about us", "application", etc. It seems to make sense to make these no follow so the page rank flows to the pages I wish to rank for. Am I on the right track?
On-Page Optimization | | leaseman0 -
How could I avoid the "Duplicate Page Content" issue on the search result pages of a webshop site?
My webshop site was just crawled by Roger, and it found 683 "Duplicate Page Content" issues. Most of them are result pages of different product searches, that are not really identical, but very similar to each other. Do I have to worry about this? If yes, how could I make the search result pages different? IS there any solution for this? Thanks: Zoltan
On-Page Optimization | | csajbokz0 -
Getting page cached
I am reworking some content that is deep in my site. What is the best way for google to find it? Some of the pages were cached about 3 weeks ago, but I don't want to wait too long to get them to see the new content (and links).
On-Page Optimization | | azguy0 -
Avoiding "Duplicate Page Title" and "Duplicate Page Content" - Best Practices?
We have a website with a searchable database of recipes. You can search the database using an online form with dropdown options for: Course (starter, main, salad, etc)
On-Page Optimization | | smaavie
Cooking Method (fry, bake, boil, steam, etc)
Preparation Time (Under 30 min, 30min to 1 hour, Over 1 hour) Here are some examples of how URLs may look when searching for a recipe: find-a-recipe.php?course=starter
find-a-recipe.php?course=main&preperation-time=30min+to+1+hour
find-a-recipe.php?cooking-method=fry&preperation-time=over+1+hour There is also pagination of search results, so the URL could also have the variable "start", e.g. find-a-recipe.php?course=salad&start=30 There can be any combination of these variables, meaning there are hundreds of possible search results URL variations. This all works well on the site, however it gives multiple "Duplicate Page Title" and "Duplicate Page Content" errors when crawled by SEOmoz. I've seached online and found several possible solutions for this, such as: Setting canonical tag Adding these URL variables to Google Webmasters to tell Google to ignore them Change the Title tag in the head dynamically based on what URL variables are present However I am not sure which of these would be best. As far as I can tell the canonical tag should be used when you have the same page available at two seperate URLs, but this isn't the case here as the search results are always different. Adding these URL variables to Google webmasters won't fix the problem in other search engines, and will presumably continue to get these errors in our SEOmoz crawl reports. Changing the title tag each time can lead to very long title tags, and it doesn't address the problem of duplicate page content. I had hoped there would be a standard solution for problems like this, as I imagine others will have come across this before, but I cannot find the ideal solution. Any help would be much appreciated. Kind Regards5