-
Improvement
-
Resolution: Won't Fix
-
Normal
-
None
-
None
The lastfm importer sends an OPTIONS request to our endpoint every time we submit an item. This results in lots of requests to flask only for it to say "yes, OK".
It looks like it's possible to do this all in nginx:
http://blog.rogeriopvl.com/archives/nginx-and-the-http-options-method/
Though there are some considerations about "if" to be careful of:
https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/
Specifically however, it says
There are cases where you simply cannot avoid using an if, for example if you need to test a variable which has no equivalent directive.
if ($request_method = POST ) {
return 405;
}
- is related to
-
IMG-56 The documentation claims the HTTP OPTIONS method is supported but it isn't
-
- Closed
-