Nginx route returns empty gif
Closed this issue · 3 comments
The nginx config file contains this route:
location ~ /_.gif {
empty_gif;
}
What is the purpose of this?
I was thinking about adding the .gif extensions to my counting calls but they don't get through to voncount.lua since they are picked up by the route above.
Hey!
We are executing this route at the end of the counting operation so each request to count-von-count automatically returns an empty gif.
On the last line of voncount.lua, we trigger utils:emptyGif() which executes this route.
Ah yes, I overlooked that. I will change the route to /empty.gif
in my fork, so that I can add the .gif extension to my tracking calls. Would you be interested in a PR?
I implemented this here: https://github.com/krautcomputing/count-von-count/commit/c3efe7319dc86c3fcf7718c45f4d7af109723c57
Feel free to cherry-pick or plain copy.