Skip to content

Commit f4ad07e

Browse files
author
zhourenjian
committed
Add "Cache-Control" HTTP header
1 parent b450d7d commit f4ad07e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/net/sf/j2s/core/hotspot/HotspotWorker.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ void handleClient() throws IOException {
160160
ps.write(EOL);
161161
ps.print("Pragma: no-cache");
162162
ps.write(EOL);
163+
ps.print("Cache-Control: no-cache");
164+
ps.write(EOL);
163165
if (doingGet) {
164166
sendLatestHotspot(sessionID, ps);
165167
}

src/net/sf/j2s/core/hotspot/InnerHotspotServer.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import java.net.*;
55
import java.util.*;
66

7-
import javax.print.attribute.standard.Severity;
8-
97
/**
108
* Only send out *.js about current modified *.js.
119
*

0 commit comments

Comments
 (0)