Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/250.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.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
Javascript Web服务器使用旧的不存在的文件来呈现网站_Javascript_Php_Webserver_Silex_Filezilla - Fatal编程技术网

Javascript Web服务器使用旧的不存在的文件来呈现网站

Javascript Web服务器使用旧的不存在的文件来呈现网站,javascript,php,webserver,silex,filezilla,Javascript,Php,Webserver,Silex,Filezilla,我已经把我的文件上传到我的网站上了。当我查看网站时,在线html如下所示: 然而,这绝对不是在线的文件。我试过多次更新它。但是,它仍然呈现我很久以前使用的文件。我试图删除缓存和cookie。但出于某种奇怪的原因,它仍然设法使用一个旧的已删除文件。。。为什么呢 应联机的html如下所示: {% extends "layout.html.twig" %} {% block content %} <div id="preloader"></div> <div id

我已经把我的文件上传到我的网站上了。当我查看网站时,在线html如下所示:

然而,这绝对不是在线的文件。我试过多次更新它。但是,它仍然呈现我很久以前使用的文件。我试图删除缓存和cookie。但出于某种奇怪的原因,它仍然设法使用一个旧的已删除文件。。。为什么呢

应联机的html如下所示:

{% extends "layout.html.twig" %}

{% block content %}

<div id="preloader"></div>

<div id="s1" class="hero">
    <div id="menu_block" name="menu_block" class="menu_block right">
        <nav class="nav_block">
            <a href="#s1">Home</a>
            <a href="#s2">About</a>
            <a href="#s3">Projects</a>
            <a href="#s4">Skills</a>
            <a href="#s5">Resume</a>
            <a href="#s6">Contact</a>
        </nav>
    </div>

    <div class="container vertical center">
        <div class="title white">
            Lex de Willigen
        </div>
        <div class="subtitle white">
            DEVELOPER
        </div>
        <div class="subsubtitle">
            <i>Hello, my name is Lex and I'm <br>
            a developer from the Netherlands!</i>
        </div>
    </div>
</div>

<div id="s2" class="section">
    <div class="container vertical center" style="margin-top: 10px;">
        <i class="fa fa-user fa-4x"></i>
    </div>
    <div class="container vertical center" style="">
        <h2 style="font-weight: 900; font-family: arial; color: black;">
            WHO AM I?
        </h2>
    </div>
    <div class="container vertical center" style="">
        <p>
            <b>Hi!</b> My name is Lex. 
            <h3 class="animate">And I'm developer</h3>
        </p>
    </div>
</div>

<div id="s3" class="section">
    <div class="container vertical center" style="">
        <h2>
            Projects
        </h2>
    </div>
</div>

<div id="s4" class="section">
    <div class="container vertical center" style="">
        <h2>
            Skills
        </h2>
    </div>
</div>

<div id="s5" class="section">
    <div class="container vertical center" style="">
        <h2>
            Resume
        </h2>
    </div>
</div>

<div id="s6" class="section">
    <div class="container vertical center" style="width: 50%;">
        <h2>
            Contact
        </h2>

        {% if form is defined %}
            <form action="" method="post">
                {{ form_widget(form) }}
            </form>
        {% endif %}
    </div>
</div>
{% endblock %}
{%extends“layout.html.twig”%}
{%block content%}
威利根法
开发商
你好,我叫莱克斯,我是
来自荷兰的开发商! 我是谁? 你好我叫莱克斯。 我是开发者

项目 技能 简历 接触 {%如果表单已定义%} {{form_widget(form)} {%endif%} {%endblock%}
一些额外的细节:

  • 我正在使用Silex框架
  • 出于某种原因,我从未让javascript正常工作,尽管这可能是因为从未加载新文件
  • 当需要时,我可以给我的网站,以防你想检查什么可能是问题

  • 您的服务器端缓存。请检查php.ini是否将opcache过期时间设置得太长

    • Opcache可以缓存

    • nginxweb服务器缓存


    您是否仅在计算机或其他设备上遇到此问题?我的意思是,如果您尝试从手机访问此页面,您也会得到旧文件?您是否使用
    cloudflare
    ?如果是,请尝试从cloudflare dashboard清除缓存。@AlbertoMartinez否,我已在2台pc上尝试过,两者的体验相同problem@RafaelHovsepyan不,我没有使用cloudflareits,它是某种形式的服务器端缓存。这是共享主机吗?如果是,请在面板中查找任何缓存设置。Twig还可以配置为缓存模板我已经找到了如何删除缓存!页面现在正在更新不,我的Silex项目(我使用的是Fabbot框架)中有一个保存缓存的地方。我删除了那些文件夹中的所有内容,然后它又开始工作了!哦,好吧,当你说它没有被输出更新时。我刚到它的储藏室。。大部分服务器端也有缓存。如果启用时间过长,可能会导致相同的问题:)