Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-09-23 22:17:51 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-09-23 22:17:51 +0300
commit80c7ea60a0e0f488563a6b7311f3d4c23457aac7 (patch)
tree0f8d16ee0d24f8fcc6e90e2048d480533a1ed2ea
parent0d29a0f7819e8d73149701052c29f090cd6db42b (diff)
Make noHTTPCache default on
This is a development server, so that makes the most sense. See #3897
-rw-r--r--commands/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/server.go b/commands/server.go
index b52e38c17..312aa5093 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -89,7 +89,7 @@ func init() {
serverCmd.Flags().IntVar(&liveReloadPort, "liveReloadPort", -1, "port for live reloading (i.e. 443 in HTTPS proxy situations)")
serverCmd.Flags().StringVarP(&serverInterface, "bind", "", "127.0.0.1", "interface to which the server will bind")
serverCmd.Flags().BoolVarP(&serverWatch, "watch", "w", true, "watch filesystem for changes and recreate as needed")
- serverCmd.Flags().BoolVar(&noHTTPCache, "noHTTPCache", false, "prevent HTTP caching")
+ serverCmd.Flags().BoolVar(&noHTTPCache, "noHTTPCache", true, "prevent HTTP caching")
serverCmd.Flags().BoolVarP(&serverAppend, "appendPort", "", true, "append port to baseURL")
serverCmd.Flags().BoolVar(&disableLiveReload, "disableLiveReload", false, "watch without enabling live browser reload on rebuild")
serverCmd.Flags().BoolVar(&navigateToChanged, "navigateToChanged", false, "navigate to changed content file on live browser reload")