d2487acc53819ca9b3a5f6df519408c3e4293e93
tdreszer
  Wed Oct 6 14:22:33 2010 -0700
Make cgi references to style sheets (css files) actually point to timestamped link.  Common code is also used for js files
diff --git src/hg/inc/web.h src/hg/inc/web.h
index 1145da5..57bf25c 100644
--- src/hg/inc/web.h
+++ src/hg/inc/web.h
@@ -257,4 +257,19 @@
 
 boolean validateGisaidUser(struct cart *cart);
 /* validate if the web user is an authenticated GISAID user */
+
+char *webTimeStampedLinkToResource(char *fileName, boolean wrapInHtml);
+// Returns full path of timestamped link to the requested resource file (js, or css).
+// If wrapInHtml, then returns link embedded in style or script html. Free after use.
+
+char *webTimeStampedLinkToResourceOnFirstCall(char *fileName, boolean wrapInHtml);
+// If this is the first call, will
+//   Return full path of timestamped link to the requested resource file (js, or css).  Free after use.
+// else returns NULL.  Useful to ensure multiple references to the same resource file are not made
+
+boolean webIncludeResourceFile(char *fileName);
+// Converts fileName to web Resource link and hPrintfs the html reference
+// This only prints and returns TRUE on first call for this resource.
+// The reference will be to a link with timestamp.
+
 #endif /* WEB_H */