Skip to content

Commit

Permalink
add assets checksum for cache busting. Fixes #91
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Jan 11, 2018
1 parent 57b66dc commit dfc85b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

This comment has been minimized.

Copy link
@jpuck

jpuck Jan 11, 2018

Contributor

very nice 👍

}
}

0 comments on commit dfc85b7

Please sign in to comment.