Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html IE不';t缓存我的音频文件_Html_Angularjs_Http_Internet Explorer_Caching - Fatal编程技术网

Html IE不';t缓存我的音频文件

Html IE不';t缓存我的音频文件,html,angularjs,http,internet-explorer,caching,Html,Angularjs,Http,Internet Explorer,Caching,我对IE缓存有问题。在我的web应用程序中,我播放一些声音。我在加载网站的过程中加载这些声音,当我使用它们时,这些文件应该已经可以在本地访问到web浏览器的缓存中 使用Chrome和FF,您可以看到文件不会被重新加载=>很好 但是使用IE,文件总是从服务器重新加载=>太糟糕了 在缓存文件夹中,我的所有文件均为空: 我的应用程序是Angular 2.2+ApachePHP服务器+NoSQL应用程序。我通过以下方式加载音频文件: let audio:HTMLAudioElement =

我对IE缓存有问题。在我的web应用程序中,我播放一些声音。我在加载网站的过程中加载这些声音,当我使用它们时,这些文件应该已经可以在本地访问到web浏览器的缓存中

使用ChromeFF,您可以看到文件不会被重新加载=>很好

但是使用IE,文件总是从服务器重新加载=>太糟糕了

在缓存文件夹中,我的所有文件均为空:

我的应用程序是Angular 2.2+ApachePHP服务器+NoSQL应用程序。我通过以下方式加载音频文件:

    let audio:HTMLAudioElement = new HTMLAudioElement();
    audio.src = this.path;
    audio.play();
在我的index.html中,我尝试了以下方法:

    <meta http-equiv="Cache-control" content="public, max-age=3600">
    <meta http-equiv="Expires" content="public, max-age=3600">
    <meta http-equiv="Last-Modified" content="public, max-age=3600">

但这似乎对IE浏览器没有影响

有什么想法吗?

我对IE有意见-谁不呢?!我对IE有问题-谁没有?!