src/hg/lib/jsHelper.c 1.26
1.26 2009/06/15 20:47:06 tdreszer
I removed js file versioning by fake get variable, as it has led to some browsers/configurations reacquiring the file from the server every time a function is called. Versioning solution still remains to be done.
Index: src/hg/lib/jsHelper.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/jsHelper.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -b -B -U 4 -r1.25 -r1.26
--- src/hg/lib/jsHelper.c 19 Mar 2009 18:29:52 -0000 1.25
+++ src/hg/lib/jsHelper.c 15 Jun 2009 20:47:06 -0000 1.26
@@ -381,9 +381,10 @@
else
noScriptBuf[0] = 0;
// we add mtime to create a pseudo-version; this forces browsers to reload js file when it changes,
// which fixes bugs, odd behavior that occurs when the browser caches modified js files
- hPrintf("<script type='text/javascript' src='../%s/%s?v=%ld'></script>\n%s", dirName, fileName, mtime, noScriptBuf);
+ //hPrintf("<script type='text/javascript' src='../%s/%s?v=%ld'></script>\n%s", dirName, fileName, mtime, noScriptBuf);
+ hPrintf("<script type='text/javascript' src='../%s/%s'></script>\n%s", dirName, fileName, noScriptBuf);
}
}
char *jsCheckAllOnClickHandler(char *idPrefix, boolean state)