Random Number In ASP for no Flash Caching

0 min read 77 words

This is an example of how to create a random number in Classic ASP in order to append to a swf file so that the browser does not cache the swf file.

<% Dim SwfRndNum Randomize SwfRndNum = Rnd %>

You can then add it to your swf embed code as follow, bear in mind that I am only showing the snippet around the swf file name and not the entire embed code.

mySwfFile.swf?a=<% Response.Write SwfRndNum %>
Andrew
Andrew

Andrew is a visionary software engineer and DevOps expert with a proven track record of delivering cutting-edge solutions that drive innovation at Ataiva.com. As a leader on numerous high-profile projects, Andrew brings his exceptional technical expertise and collaborative leadership skills to the table, fostering a culture of agility and excellence within the team. With a passion for architecting scalable systems, automating workflows, and empowering teams, Andrew is a sought-after authority in the field of software development and DevOps.

Tags