Author: a_horuzhenko
Date: Fri May 31 06:34:45 2013
New Revision: 1488109

URL: http://svn.apache.org/r1488109
Log:
Swf files is not cached after server updating

Modified:
    
openmeetings/branches/2.1/src/org/apache/openmeetings/servlet/outputhandler/DefaultIndex.java
    openmeetings/branches/2.1/src/usual_template.vm

Modified: 
openmeetings/branches/2.1/src/org/apache/openmeetings/servlet/outputhandler/DefaultIndex.java
URL: 
http://svn.apache.org/viewvc/openmeetings/branches/2.1/src/org/apache/openmeetings/servlet/outputhandler/DefaultIndex.java?rev=1488109&r1=1488108&r2=1488109&view=diff
==============================================================================
--- 
openmeetings/branches/2.1/src/org/apache/openmeetings/servlet/outputhandler/DefaultIndex.java
 (original)
+++ 
openmeetings/branches/2.1/src/org/apache/openmeetings/servlet/outputhandler/DefaultIndex.java
 Fri May 31 06:34:45 2013
@@ -25,6 +25,7 @@ import javax.servlet.http.HttpServletReq
 import javax.servlet.http.HttpServletResponse;
 
 import org.apache.openmeetings.OpenmeetingsVariables;
+import org.apache.openmeetings.Version;
 import org.apache.openmeetings.data.basic.dao.ConfigurationDao;
 import org.apache.openmeetings.servlet.BaseVelocityViewServlet;
 import org.apache.openmeetings.servlet.ServerNotInitializedException;
@@ -47,6 +48,7 @@ public class DefaultIndex extends BaseVe
                try {
                        String template = "usual_template.vm";
                        ctx.put("APP_NAME", 
getBean(ConfigurationDao.class).getAppName());
+                       ctx.put("REVISION", Version.getRevision());
                        // Parse the Param for the SWF URL
                        String swf = httpServletRequest.getParameter("swf");
                        if (swf == null) {

Modified: openmeetings/branches/2.1/src/usual_template.vm
URL: 
http://svn.apache.org/viewvc/openmeetings/branches/2.1/src/usual_template.vm?rev=1488109&r1=1488108&r2=1488109&view=diff
==============================================================================
--- openmeetings/branches/2.1/src/usual_template.vm (original)
+++ openmeetings/branches/2.1/src/usual_template.vm Fri May 31 06:34:45 2013
@@ -87,7 +87,7 @@ img {
 <body> 
 
 <script type="text/javascript">
-    lz.embed.swf({url: '$SWF_URL?$SWF_PARAMS', allowfullscreen: 'true', 
bgcolor: '#ffffff', width: '100%', height: '100%', id: 'lzapp', accessible: 
'false'});
+    lz.embed.swf({url: '$SWF_URL&#063;rev=$REVISION&amp;$SWF_PARAMS', 
allowfullscreen: 'true', bgcolor: '#ffffff', width: '100%', height: '100%', id: 
'lzapp', accessible: 'false'});
 
     lz.embed.lzapp.onloadstatus = function loadstatus(p) {
       // called with a percentage (0-100) indicating load progress


Reply via email to