From 731e191011aef9d644a9c79ac1a6dd9f180de867 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Mon, 12 Jul 2021 09:21:30 +0200 Subject: [PATCH] Add cache-busting query param to dropin script (#1078) --- src/app/settings/payment.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/settings/payment.component.ts b/src/app/settings/payment.component.ts index 9353ba24f0..62a73893f7 100644 --- a/src/app/settings/payment.component.ts +++ b/src/app/settings/payment.component.ts @@ -73,7 +73,7 @@ export class PaymentComponent implements OnInit { this.setStripeElement(); }; this.btScript = window.document.createElement('script'); - this.btScript.src = 'scripts/dropin.js'; + this.btScript.src = `scripts/dropin.js?cache=${process.env.CACHE_TAG}`; this.btScript.async = true; }