From dfc85b7b74d3e654db64dc74a722b2a9d341afe0 Mon Sep 17 00:00:00 2001 From: Darius Matulionis Date: Thu, 11 Jan 2018 14:38:10 +0200 Subject: [PATCH] add assets checksum for cache busting. Fixes #91 --- src/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.php b/src/helpers.php index 0419b67..d80c31a 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -58,6 +58,6 @@ function l5_swagger_asset($asset) throw new L5SwaggerException(sprintf('Requested L5 Swagger asset file (%s) does not exists', $asset)); } - return route('l5-swagger.asset', $asset); + return route('l5-swagger.asset', $asset).'?v='.md5_file($file); } }