Forum Moderators: open

Message Too Old, No Replies

Cache Buster

Appending random value to URL to prevent caching

         

justgowithit

6:01 pm on Nov 15, 2007 (gmt 0)

10+ Year Member



I'm trying to grasp the concept of generating a cache buster for a mediaplex banner ad. The instructions provided for doing so are pretty vague and I'm hoping someone here can lend me a hand.

These banners are on external pages so I'm assuming javascript is the way to go... unfortunately, javascript is not my cup of tea.

Would anyone be able to point the way to learning how to generate a cache buster?

Any help is appreciated.

Achernar

6:28 pm on Nov 15, 2007 (gmt 0)

10+ Year Member Top Contributors Of The Month



You can simply add the current timestamp to the url:
...+'&'+(new Date).valueOf()+...

justgowithit

7:04 pm on Nov 15, 2007 (gmt 0)

10+ Year Member



Thanks Achernar, but for what they were asking me to do that wouldn't work. In fact, what they were asking me to do was impossible because their rep sent me the wrong source code to place on the landing page.

Now that I have the correct info I can simply generate a random int on page. I feel like sending him a bill - lol. Oh well, and so it goes....

Dabrowski

2:41 pm on Nov 16, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can't you generate a HTTP header with the page's expiry time on it?