浏览器缓存导致角度页面重新加载问题

时间:2019-06-28 07:10:42

标签: html angular caching browser reload

我网站上的页面第一次完全加载良好,但是如果我重新加载,它将被删除,直到我们清除浏览器缓存为止。

为什么会这样? 我们该如何解决?

下面是代码

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="google-site-verification" content="ENoESU-ILobE1sHAs8D6mm3S3CohuUHq9ivlMeT2szI" />

    <title>My Activity Sheet</title>

    <!--Favicon-->
    <link rel='shortcut icon' type='image/x-icon' href="<%url('favicon.ico')%>" />
    <!-- Core Css -->
    <link href="<% asset('static/vendors/angular-select/ui-select.css') %>" rel="stylesheet">
    <link href="<% asset('css/mas.css') %>" rel="stylesheet">
    <link href="<% asset('css/responsive.css') %>" rel="stylesheet">
     <link href="<% asset('static/vendors/bootstrap/dataTables.bootstrap.min.css') %>" rel="stylesheet">
     <link href="<% asset('static/vendors/dateipcker-angular/angular-datepicker.min.css') %>" rel="stylesheet">

    <link rel="stylesheet" href="//cdn.jsdelivr.net/angular.gantt/latest/angular-gantt.min.css"/>
    <link rel="stylesheet" href="//cdn.jsdelivr.net/angular.gantt/latest/angular-gantt-plugins.min.css"/>
    @yield('pageLevelCSS')
    <style>
        .selectize-control > .selectize-dropdown {
            top: 36px;
        }
    </style>

    @yield('pageLevelHeadJs')
    <script>

0 个答案:

没有答案