|
Support browser caching using hashes in serverMode (fixes #93, fixes #92).
Now the HTML can include a hash in the URL for cachable resources, and the serve knows how to include cache-control headers.
In the process of doing so, I had to change a couple things that made it possible to fix #92 as well (producing different output in the command-line than in server mode).
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+211 lines, -103 lines) |
Patch |
 |
M |
bin/devc.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
lib/devc.dart
|
View
|
|
10 chunks |
+47 lines, -17 lines |
0 comments
|
Download
|
 |
M |
lib/src/codegen/code_generator.dart
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
lib/src/codegen/dart_codegen.dart
|
View
|
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
lib/src/codegen/html_codegen.dart
|
View
|
|
3 chunks |
+32 lines, -17 lines |
0 comments
|
Download
|
 |
M |
lib/src/codegen/js_codegen.dart
|
View
|
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
lib/src/dependency_graph.dart
|
View
|
|
5 chunks |
+19 lines, -9 lines |
0 comments
|
Download
|
 |
M |
lib/src/utils.dart
|
View
|
|
3 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
pubspec.yaml
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A + |
test/codegen/expect/server_mode/dev_compiler/runtime/dart_runtime.js
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
test/codegen/expect/server_mode/dev_compiler/runtime/harmony_feature_check.js
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
test/codegen/expect/server_mode/dev_compiler/runtime/messages.css
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
test/codegen/expect/server_mode/dev_compiler/runtime/messages_widget.js
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
test/codegen/expect/server_mode/dir/html_input_a.js
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
test/codegen/expect/server_mode/dir/html_input_b.js
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
test/codegen/expect/server_mode/dir/html_input_c.js
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
test/codegen/expect/server_mode/dir/html_input_d.js
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
test/codegen/expect/server_mode/dir/html_input_e.js
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A |
test/codegen/expect/server_mode/html_input.html
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
test/codegen/expect/server_mode/html_input.txt
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
M |
test/codegen_test.dart
|
View
|
|
4 chunks |
+23 lines, -4 lines |
0 comments
|
Download
|
 |
M |
test/dependency_graph_test.dart
|
View
|
|
21 chunks |
+52 lines, -58 lines |
0 comments
|
Download
|
Total messages: 5 (2 generated)
|