Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(562)

Unified Diff: lib/src/barback/barback_server.dart

Issue 1874623004: Don't include Cache-Control header for served assets. (Closed) Base URL: https://github.com/dart-lang/pub.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/barback/barback_server.dart
diff --git a/lib/src/barback/barback_server.dart b/lib/src/barback/barback_server.dart
index a159b642d72a484ed10e74e18412dbab1cd4a835..3cc9f98f2b02a383593a1db79ced4a57e7c15509 100644
--- a/lib/src/barback/barback_server.dart
+++ b/lib/src/barback/barback_server.dart
@@ -172,8 +172,7 @@ class BarbackServer extends BaseServer<BarbackServerResult> {
var previousSha = request.headers["if-none-match"];
var headers = {
- // Enabled browser caching of the asset.
- "Cache-Control": "max-age=3600",
+ // Enable browser caching of the asset.
"ETag": assetSha
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698