|
@@ -149,6 +149,8 @@ func (rend *HTMLRenderer) Render(w http.ResponseWriter, r *http.Request, data in
|
|
rend.writeError(w, r, fmt.Errorf("Template %s not found", options[0]["tpl_content"][0]))
|
|
rend.writeError(w, r, fmt.Errorf("Template %s not found", options[0]["tpl_content"][0]))
|
|
}
|
|
}
|
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
|
|
|
+ w.Header().Set("Cache-Control", "no-store")
|
|
|
|
+ w.Header().Set("Cache-Control", "no-cache")
|
|
err := t.ExecuteTemplate(w, options[0]["tpl_layout"][0], &htmlTemplateData{data, options[0]})
|
|
err := t.ExecuteTemplate(w, options[0]["tpl_layout"][0], &htmlTemplateData{data, options[0]})
|
|
if err != nil {
|
|
if err != nil {
|
|
rend.writeError(w, r, err)
|
|
rend.writeError(w, r, err)
|