Allow chaching on ScriptTags.

New Member
1 0 0


I install javascript on shops using the ScriptTag resource of the Shopify API ([version]=2020-07). 

My problem is, that these script tags are allways force-reloaded on every page load. The headers for the requests unto my app-server is:

Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7
Cache-Control: no-cache
Connection: keep-alive
Host: {my host}
Pragma: no-cache
Referer: {my shop}
Sec-Fetch-Dest: script
Sec-Fetch-Mode: no-cors
Sec-Fetch-Site: cross-site
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36
I would like to control the "Cache-Control" and the "Pragma" headers to allow the browser to use a chached version of my script. Is there any settings I can tweak to make this possible? It seems that the ScriptTag API resource does not take any further arguments.

Joachim Kønigslieb