r7015: use a scripting trick to force images to be sent with http instead of https...
authorAndrew Tridgell <tridge@samba.org>
Fri, 27 May 2005 12:11:48 +0000 (12:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:06 +0000 (13:17 -0500)
should make the server more responsive
(This used to be commit 814c3674f8e0aa20fb3ee3657173bab05d7f3ded)

swat/esptest/index.esp

index 7a5952e95528a9788bbc1c8ad47ede16b6c299e1..0f3f58166a5d37aa83780da734eac508a954dd33 100644 (file)
@@ -8,7 +8,11 @@
 Samba4 ESP test
 </TITLE>
 <BODY>
-<img src="/images/logo.png" alt="Samba">
+<% 
+/* this allows us to force the image to go over more efficiently as http */
+ var imagedir = "http://" + headers['HOST'] + "/images"; 
+%>
+<img src="@@imagedir/logo.png" alt="Samba">
 <h1>Samba4 ESP test</h1>
 
 Please choose one of the following tests: