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
-
When using long-tail keywords, should you exactly match for the url or delete "in" "to" etc.?
long-tail keyword - "seizures in adults with no history" Should you include "in and with" in the url?
On-Page Optimization | | Moleculera0 -
Url shows up in "Inurl' but not when using time parameters
Hey everybody, I have been testing the Inurl: feature of Google to try and gauge how long ago Google indexed our page. SO, this brings my question. If we run inurl:https://mysite.com all of our domains show up. If we run inurl:https://mysite.com/specialpage the domain shows up as being indexed If I use the "&as_qdr=y15" string to the URL, https://mysite.com/specialpage does not show up. Does anybody have any experience with this? Also on the same note when I look at how many pages Google has indexed it is about half of the pages we see on our backend/sitemap. Any thoughts would be appreciated. TY!
On-Page Optimization | | HashtagHustler1 -
Positioning rethinking regarding triplicate keyword "landing pages"
Hi! We're rethinking our website and we have some doubts on how it would affect our positioning. Our main keyword right now is "casas de madera". Positioning by this keyword we have three different "main" pages: Our home (http://www.canexel.es/) 2)SEO landing page (http://www.canexel.es/casas-de-madera/) 3)A blog section (http://www.canexel.es/blog/casas-de-madera/) We thought at first about changing our home main keyword, but this option has been ruled out since is the keyword that gives us the most visits and changing it would result on a rebrandindg strategy we are not sure we want to pursue. We're thinking about a canonical from the landing page (2) to our Home (1) and making it disappear from our website. Regarding our blog we've thought about removing the blog section. We've thought about a 301 from every post to a new category or just deleting the category "casas de madera" from our site and telling google not to index the section (3) but continue indexing the posts we already have published under this category. Would any of these harm our positioning? And, if so, is ther any other steps you wolud recomend us taking? In this same topic, we're about to create a SEM Landing page for this same keyword. This page will be very visual and with little text. We are not sure if we should have a canonical pointing from it to our home or just not indexing the new SEM landing page. What would you recommend? Thanks
On-Page Optimization | | Canexel0 -
Rel="canonical" Wordpress 2015 Best Practice
There are forum posts about how to insert rel="canonical" tags in Wordpress, but I've read about lots of changes in this space recently (updates to Yoast, for example). I'm having a problem with duplicate content on one of my sites, and it seems to be coming from multiple indexes of the same pages. I'll have a blog post show up under the posts, then the archives, then the tags. So, my question is, in early 2015, what are the current best practices for adding rel="canonical" tags in Wordpress? Thanks! Tim
On-Page Optimization | | TimLlew0 -
How "Top" or "Best" are considered when in front of keyword
I would like to know if someone has proven info how google today counts words "Top" or "Best" when in front of main keywords you try to rank for. For example, if I have a keyword like "Restaurants in Madrid" and I optimize that page without using words "top" or "best" will it have good rankings for keywords "top restaurants in madrid" and "best restaurants in madrid" ? I suppose that google is smart enough to know that web page should be good ranked even without using those 2 words but would like to know percentage of my loss if I just exclude those words from title tag and other important onpage factors. I want to rank high for all the 3 combinations, with "top", with "best" and without it in front so searching for best solution. I plan just to add one of those words, for example "top" and hope that google will know that "top" = "best" 🙂
On-Page Optimization | | m2webs0 -
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 -
Duplicate content "/"
Hi all, Ran my website through the SEOMOZ campaigns and the crawl diagnostics give me a duplicate error for these urls http://www.mysite.com/cat1/article http://www.mysite.com/cat1/article/ so the url with the "/" is a duplicate of the one without the "/" Can someone point me out to a solution to solve this ? regards, Frederik
On-Page Optimization | | frdrik1230 -
How do I address "Critical Factors: Accessible to Engines"?
Hello,I am going thru the on-page report card produced by SEOMOZ and am stumped as to how to address the first critical factor. It looks like the correct meta tag to get search engines to index the site is at the bottom of the header. And as far as I know, which isn't much, the site returns the HTTP code 200 when I refresh.I am new at this, so please let me know if you have some specific solutions. I am using IWeb and the IWeb SEO Tool to make meta code improvements. I have pasted the head code for my website (www.grass2greens.com) below. Thanks in advance!<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><meta content="iWeb 3.0.4" name="Generator"><meta content="local-build-20120619" name="iWeb-Build"><meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible"><meta content="width=880" name="viewport"><title>Grass to Greens: Asheville Edible Landscapingtitle><link href="Grass_to_Greens__Asheville_Edible_Landscaping_files/Grass_to_Greens__Asheville_Edible_Landscaping.css" media="screen,print" type="text/css" rel="stylesheet"><style type="text/css"><script type="text/javascript" async="" src="http://www.google-analytics.com/ga.js"><script type="text/javascript" async="" src="http://www.google-analytics.com/ga.js"><script src="Scripts/iWebSite.js" type="text/javascript"><script src="Scripts/iWebImage.js" type="text/javascript"><script src="Scripts/iWebMediaGrid.js" type="text/javascript"><script src="Scripts/Widgets/SharedResources/WidgetCommon.js" type="text/javascript"><script src="Scripts/Widgets/HTMLRegion/Paste.js" type="text/javascript"><script src="Grass_to_Greens__Asheville_Edible_Landscaping_files/Grass_to_Greens__Asheville_Edible_Landscaping.js" type="text/javascript"><script type="text/javascript"><meta content="Grass to Greens offers a range of edible landscape design, consultation, installation, and maintenance services. Free Consultations! We specialize in beautiful and useful vegetable gardens, season extension, tree work, orchards and food forests, stone work, fencing, and rain water catchment. Grass to Greens is an edible landscaping company committed to creating food security and fostering social justice through urban agriculture in the Asheville area. " name="description"><meta content="Landscaping Asheville Edible Gardens" name="keywords"><meta content="follow,index" name="robots"><link rel="stylesheet" type="text/css" href="Grass_to_Greens__Asheville_Edible_Landscaping_files/Grass_to_Greens__Asheville_Edible_LandscapingMoz.css">head> Grass to Greens: Asheville Edible Landscaping
On-Page Optimization | | dcaudio0