Revel framework caching static files?

491 Views Asked by At

I am trying to build a simple web app on the revel go web framework. For some reason, files in the public directory are not loaded correctly when I open their URLs in the browser. For example, an older version of the file may appear (even after reloading in the browser), or a truncated version shows up.

Anyone encountered this issue?

1

There are 1 best solutions below

0
On
  • Is GOPATH set up in the same location you are developing?
  • Are more copies of that file in your gopath?
  • Could you try to run strace -e open revel run my/app/name | grep file.jpg and see what is the location that revel is using?

I had a similar problem because I develop outside my gopath...