Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 05-10-2011, 07:27 AM
mgravlee's Avatar
mgravlee mgravlee is offline
Member
 
Join Date: 05-06-10
Posts: 47
iTrader: 0 / 0%
Question Cachebuster

How can you replace [CACHEBUSTER] with a random number in the URL below in an html page?

http://adfarm.mediaplex.com/ad/bn/0-0-0-0?mpt=[CACHEBUSTER]
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 05-10-2011, 11:10 AM
nemrod's Avatar
nemrod nemrod is offline
v7n Mentor
 
Join Date: 12-21-10
Location: Sweden
Posts: 463
iTrader: 0 / 0%
Quote:
Originally Posted by mgravlee View Post
How can you replace [CACHEBUSTER] with a random number in the URL below in an html page?

http://adfarm.mediaplex.com/ad/bn/0-0-0-0?mpt=[CACHEBUSTER]
With a server-side language, preferably.

Something like this:
PHP Code:
<a href="http://adfarm.mediaplex.com/ad/bn/0-0-0-0?mpt=<?php echo rand(); ?>">Link</a>
Then again using querystrings to avoid cache issues isn't a good way to solve the problem, the server should tell browsers not to cache if that's the wanted behaviour.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:26 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC