iframe pages get cached?

Discussion in 'Search Engine Optimization' started by klown, Nov 21, 2006.

  1. #1
    If i have something in an iframe will it end up getting cached? There are no links pointing to the page inside my site, just a php page as the source of the iframe.
     
    klown, Nov 21, 2006 IP
  2. Bondat

    Bondat Peon

    Messages:
    2,397
    Likes Received:
    217
    Best Answers:
    0
    Trophy Points:
    0
  3. rzvagelsky

    rzvagelsky Well-Known Member

    Messages:
    1,214
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    140
    #3
    if you don't want google to index the iframe, set your robots.txt file to disallow it:

    User-agent: *

    Disallow: /filename.php

    I do this and it works like a charm. Now if you want it to be indexed, just leave it alone.
     
    rzvagelsky, Nov 21, 2006 IP
  4. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thats likely what i'll end up doing, i was just curious about their indexing of the iframe.
     
    klown, Nov 21, 2006 IP
  5. Bondat

    Bondat Peon

    Messages:
    2,397
    Likes Received:
    217
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Frames aren't SEO friendly. So I suggest don't include frames for your site. ;)
     
    Bondat, Nov 21, 2006 IP
  6. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i dont care if those frames are indexed, i'm doing it to prevent a reload of the site when somebody submits to the tool. Much better user experience this way. I don't really feel like doing ajax for all of them, besides this way i can let people put the tools onto their sites easily.
     
    klown, Nov 21, 2006 IP
  7. mani

    mani Peon

    Messages:
    679
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Iframes can be indexed in search engines but as a seperate page, if you don't want them to index use a robots.txt or use a no-follow meta tag inside the page that is loading into iframe.
    But frames will be shown in google cache as a seperate page and inside your page also.
     
    mani, Nov 21, 2006 IP