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
-
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 -
Bad to have "As Seen on" links sitewide
I've seen a lot of people saying that sidewide external links are a no-go. Does this also apply to links of a vanity variety? What I mean by this is "as seen on" links or links to awards given to the business? This intellectually seems okay to me, but I want to make sure I'm not shooting myself in the foot. Any evidence, case studies, anecdotal stories would be appreciated!
On-Page Optimization | | Oren.0 -
Question about overoptimization and images "alt"
Hello, I own a shop with lots of categories, in each category there is a lot of pictures, some have already alt, must I put the attribute alt in all images, it would be 100% beneficial for my site or could would I be over-optimizing the site? Thank you
On-Page Optimization | | yuyuyu0 -
Google is showing the "wrong" page in the serps for user queries
Our site, cpuboss.com has two main types of pages: comparisons of CPUs, and pages about individual CPUs. When I google search for "fx8350", a keyword for the cpu "AMD FX-8350", I hoped to see our CPU page ranking, instead I see a comparison of this CPU against another. http://i.imgur.com/QwNczDj.png?1 (Our page ranks #5) Any idea? Many of our comparisons rank for CPU keywords, when I think it'd be a better experience for the user if our cpu pages ranked instead. This particular CPU page is linked to on our homepage with appropriate anchor text, and linked to on that comparison also. I would have hoped the relevance of the cpu page to this keyword would be stronger than the comparison page, and google might use that relevance signal to show the user the right page. thoughts?
On-Page Optimization | | cdnventure0 -
What makes a "perfectly optimized page" in 2013?
Hi all, I was re-reading this blog http://moz.com/blog/perfecting-keyword-targeting-on-page-optimization and wondered how relevant you guys thought this post still was? Moz link directly to it from their 'learn' page http://moz.com/learn/seo so I'm interpreting that to mean it is still accurate and as current as it can be? What else would you add to it? Thanks,
On-Page Optimization | | James-Distinction
James0 -
Can't rank for a target key word "penalized?"
I've been trying to rank for the key word "kayak fishing" for my site www.yakangler.com. Last year when I started working on the SEO for my site I was on page 30 for Google search results so like the 300th result. After tweaking things on my site I managed to get to the second page but have since fallen all the way back to page 25-26 in the search results. I'm wondering if I'm penalized for this key word. I can't figure out why my site is ranking soooo badly for "kayak fishing" Any help or ideas would be greatly appreciated!
On-Page Optimization | | mr_w0 -
Does page "depth" matter
Would it have a negative effect on SEO to have a link from the home page to this page... http://www.website/com/page1deep/page2deep rather than to this page http://www.website/com/page1deep I'm hoping that made some sense. If not I'll try to clarify. Thanks, Mark
On-Page Optimization | | DenverKelly0 -
Should my client remove "SEO" from the XML sitemap name?
I have suggested to a client with limited content on their site (considering it's in a very competitive sector with oceans of content possibilities!) that they probably shouldn't name the XML sitemap featuring their "seo content pages" (I hate that terminology BTW!) - google_sitemap_seo.xml My reasoning is that if I was a Google engineer or Google bot, I would probably ignore and disregard those pages because they are most likely poor quality content/doorway pages/boiler plate pages/ "enter your descriptive phrase here" pages. The push back from tech is that it doesn't make a difference so we're not going to do it.
On-Page Optimization | | Red_Mud_Rookie0