>>Try CF Static (http://cfstatic.riaforge.org/), it appends a unique string
to the end of the file requests,

Ok, good technique.
But instead of downloading 262 files, I developped this simple CF_script custom 
tag:

<CFSETTING ENABLECFOUTPUTONLY="Yes">
<CFSET scriptFile = expandPath(attributes.src)>
<CFIF fileExists(scriptFile)>
   <!--- get a timestamp from the file --->
   <CFSET fileInfo = getFileInfo(scriptFile)>
   <CFSET timeStamp = dateFormat (fileInfo.lastModified, "yymmdd")
     & timeFormat(fileInfo.lastModified, "HHmmss")>
<CFELSE>
   <CFOUTPUT>File #attributes.src# not found</CFOUTPUT><CFABORT>
</CFIF>
<CFOUTPUT><SCRIPT type="text/javascript" 
src="#attributes.src#?#timestamp#"></SCRIPT>
</CFOUTPUT>
<CFSETTING ENABLECFOUTPUTONLY="no">

Then replace all like
<script src="/commun/CSI_menu.js" type="text/javascript"></script>
by
<CF_script src="/commun/CSI_menu.js">

It does the job.
I will probably develop the same for css files




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359296
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to