Static cache control

It is not good to force client to clear cache or refresh browser after updates!

Get static file and generate MD5 hash of a modification time.

Writing a built-in function called "static" for template:

static cache go template function

Using in a template:

go tpl function

So the web browser output:

web browser output

When client revisits the website, web browser re-fetches the assets on etag change.

No refresh or clear cache needed!