Skip to content

Random Number In ASP for no Flash Caching

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 %>
Code language: HTML, XML (xml)

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 %>
Code language: HTML, XML (xml)

See also  Build a pile of Cubes in Kotlin
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x