Tell Browser not to read from computer cache

Discussion in 'HTML & Website Design' started by tryingtolearn, May 4, 2009.

  1. #1
    Hello,

    I am an affiliate for a company. The issue I am having is if I go to the affiliate site, or any affiliate site for that company it caches there forms, and so on in my computer. Now when you go to my website and click on the form it's not mine it is the other affiliate, or the affiliate company.

    It even has there logo on the form and mine is blind-branded with no logo because I have my logo in my website header. So if you go to any other site but mine first I don't get paid for the quote because it's the other persons form cached in my computer thus they get paid and not me. This well suck if a consumer visits another website site first and likes mine better and wants to get a quote on my site.

    I am using an iframe but this is not the problem. If I go to my site first, then the actually company I am an affiliate for my form comes up on there website not there own.

    Is there a way to tell the browser not to read from the cache and to get a fresh copy of everything? I don't know what else to do.

    Any help would be appreciated.

    Thanks
     
    tryingtolearn, May 4, 2009 IP
  2. Sapphiro

    Sapphiro Well-Known Member

    Messages:
    1,242
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    175
    #2
    ermmm you typed too long and I don't really get what you mean. But if it's just cache, I think you just have to go to internet options and clear them. :) For all other users out there when they visit your site, they will see the real thing when it's loaded on their computers for the first time.
     
    Sapphiro, May 4, 2009 IP
  3. tryingtolearn

    tryingtolearn Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The issue is for everyone not just me. It's like when you go to an online store and see a special, the next time you go back to the store you still see the old special even though they updated it because it's in your cache.

    I really can't tell people to clear there cookies before the come to my website.

    My issue is if someone goes to a website that uses the same company I do as an affiliate there forms get cached in there computer. When they find my website and click to get a quote there form NOT mine comes up. I want to tell the browser to re-validate the cached content or to bypass it.

    I have tried

    <meta http-equiv="Expires" content="Mon, 26 Jan 2009 05:00:00 GMT" />
    <meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="must-revalidate" />

    Non of there work so far.
     
    tryingtolearn, May 4, 2009 IP
  4. Unni krishnan

    Unni krishnan Peon

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    0
    #4
    You can use JSP inside your page for removing the cache content.
    Hope this helps.

    Unni Krishnan
    TechnoTwins Designs and Solutions.
     
    Unni krishnan, May 4, 2009 IP
  5. tryingtolearn

    tryingtolearn Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Sounds like a genius idea! I will have to do some research on how to integrate this into my HTML pages somehow. JSP is all new to me. Thanks so much for your help, and time
     
    tryingtolearn, May 5, 2009 IP
  6. Unni krishnan

    Unni krishnan Peon

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    0
    #6
    The above code wrked perfectly in one of my java applications.I had implemented this in core java. But i think it will work fine in JSP also.

    For the above code to work your hosting server should support java.

    For embedding it into your html, enclose the code between the <%! and %> tags(directive tags in jsp). This works once when the page is loaded. You can place it between the head or body tags.

    If you want it to work on every page reload, better include it within the <% and %> tags(scriptlet tags).

    Hope this helps.

    Unni Krishnan
    TechnoTwins Design and Solutions.
     
    Unni krishnan, May 5, 2009 IP