I\'m attaching a js library using hook_page_attachments in a custom module, adding some variables to drupalSettings and setting custom cache tags
function my_