使用Go / Negroni / Gorilla Mux从静态网址提供文件

So I am new to Go and trying it out to build a simple web server. One part I am having trouble with is that I want to serve static files with dynamic static urls (to enable long caching by the browser). For example, I might have this url:

/static/876dsf5g87s6df5gs876df5g/application.js

But I want to serve the file located at:

/build/application.js

How would I go about this with Go / Negroni / Gorilla Mux?

查看全部
doujiu3768
doujiu3768
2015/04/03 23:53
  • it技术
  • 互联网问答
  • IT行业问题
  • 编程语言问答
  • 计算机技术
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复