You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that jquery adds an additional _ timestamp queryparam when using cache: false option to construct a ajax request in src/js/app/request.js/. jquery doc https://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings
Removing cache: false fixes this problem i.e I am getting proper response object instead of an empty array.
If this is fine as a fix I can make a PR
The text was updated successfully, but these errors were encountered:
Expected Behavior
When using resting to call an API like https://api.openf1.org/v1/drivers?driver_number=1&session_key=9158, I expect to get a response with some json data, refer https://openf1.org/
Actual Behavior
Instead I just get an empty json array
Steps to Reproduce the Problem
Possible fix
It seems that jquery adds an additional
_
timestamp queryparam when usingcache: false
option to construct a ajax request insrc/js/app/request.js/
. jquery doc https://api.jquery.com/jQuery.ajax/#jQuery-ajax-settingsRemoving
cache: false
fixes this problem i.e I am getting proper response object instead of an empty array.If this is fine as a fix I can make a PR
The text was updated successfully, but these errors were encountered: