Welcome to WebmasterWorld Guest from 23.23.46.20

Forum Moderators: open

Iframe invocation codes for ads - fail in Opera

   
3:34 am on May 31, 2012 (gmt 0)



Hi.
I have a small ad network. Its invocation codes are iframe.
The issue is that, if the publisher pastes the ad code more than one place in the same page, then there is issue with opera.

Opera loads the first iframe from the server, then loads others from cache, So all ad boxes shows the same ads.

However other browser are fine.
In Chrome, IE and FireFox, there is no problem. They show different ads in each box.

Please open this page with opera and other browsers to see the difference.

<snip>

How can i prevent this opera iframe caching ?

Regards.

[edited by: incrediBILL at 3:43 am (utc) on May 31, 2012]
[edit reason] URL removed, no site reviews TOS #21 [/edit]

10:48 pm on Jun 7, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



To fool most browsers not to use a cached resource you need to change the URI of the resource.
So if the frame points to something like
http://www.example.com/add.htm?publisherid=1234
get them to add a dummy parameter e.g.
http://www.example.com/add.htm?publisherid=1234&frame=1
http://www.example.com/add.htm?publisherid=1234&frame=2
This makes the URI's unique and it should then not use the cached version.

You might also want to check that you are expiring your add page immediately and setting the nocache options.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month