我已将文件上传到我的网站。当我查看网站时,在线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 %}
一些额外的细节:
答案 0 :(得分:1)
您的服务器端缓存。请检查php.ini是否设置opcache到期时间太长。
Opcache可以缓存。
Nginx网络服务器缓存。