How do I remove the appended string from image and Javascript URLs? I have a Drupal 8 website. I have installed the Advagg module. The URL for the JavaScript file has a string appended. 


https://example.com/libraries/superfish/superfish.js?pzw4cp
https://example.com/libraries/superfish/superfish.js?pzy2r8
https://example.com/libraries/superfish/superfish.js?pzzsmo
https://example.com/sites/default/files/js/optimized/js_rKIkMy4-wmUaGP59iZKW9XJMLcVwjsfB0SXmAPmdK1I.sEln9qPOr9xw2O4-sGx2Wja5YU2bXXCG59CPiBDxwUY.js?q0emwu


The same happens for the URLs of the uploaded images. Sometimes, the browser doesn't display the image, when its URL has that string. If I remove the string, the image is displayed. Google search console reports such files as malware.

How do I remove those strings from the end of the URL?
The strings are to ensure that the files are not cached by proxies or intermediary caches when Drupal rebuilds its own caches. Whenever Drupal's cache is cleared and regenerated these strings will change. These are 'cache buster' strings.

Check this for an explanation of what is cache busting - https://www.adopsinsider.com/ad-ops-basics/what-is-a-cache-buster-and-how-does-it-work/