Hi, I just realised that my app cache my json request so new content doesnt appear until I remove the app cache
How to disable this ?
I put cache : false but seems to don’t works
Hi, I just realised that my app cache my json request so new content doesnt appear until I remove the app cache
How to disable this ?
I put cache : false but seems to don’t works
There is no any caching logic for custom requests made with app.request. Issue can be on server side which can set wrong cache headers, or if you service workers, make sure you handle it there correctly
Thanks @nolimits4web
I work with wordpress apii and it seems that he cache the request. So I do :
function add_cors_http_header(){
header("Access-Control-Allow-Origin: *");
header("Cache-Control: no-cache");
}
add_action('init','add_cors_http_header');