Add app version to asset url to bust cache

This commit is contained in:
KodeStar 2022-03-21 06:42:59 +00:00 committed by GitHub
parent 8b72ff0a0d
commit 9ca2078e7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,8 +25,8 @@
<meta name="theme-color" content="#ffffff">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="{{ asset('css/app.css?v=2') }}" type="text/css" />
<link rel="stylesheet" href="{{ asset('css/all.min.css?v=2') }}" type="text/css" />
<link rel="stylesheet" href="{{ asset('css/app.css?v='.config('app.version')) }}" type="text/css" />
<link rel="stylesheet" href="{{ asset('css/all.min.css?v='.config('app.version')) }}" type="text/css" />
<script src="{{ asset('js/fontawesome.js') }}"></script>
@if(config('app.url') !== 'http://localhost')
<base href="{{ config('app.url') }}">
@ -115,7 +115,7 @@
</div>
<script src="{{ asset('js/jquery-3.6.0.min.js') }}"></script>
<script src="{{ asset('js/jquery-ui.min.js') }}"></script>
<script src="{{ asset('js/app.js?v=5') }}"></script>
<script src="{{ asset('js/app.js?v='.config('app.version')) }}"></script>
@yield('scripts')
<script id="custom_js">