Home  >  Q&A  >  body text

apache - Website becomes weird. Updates out of sync? www difference?

My website suddenly became weird
After I updated a css
I went to my website to see
www.xxx.com
The result was that the css was entered, assuming www.xxx.com /css.css Okay
After I entered it, I found that there was no update... The same happened after reorganizing
Make sure the upload was successful
So I changed to xxx.com/css.css and removed the www and sure enough, there was an update. ?
But when I go to www.xxx.com/css.css, it’s gone again.....
What kind of weird situation is this?
The weird thing is that there is no problem with the php code?
As long as there is an external connection, there will be problems. For example,

<link rel="stylesheet" type="text/css" href="css.css">
<script src="js.js"></script>

-_-

The same thing happens if you add this code

<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

There was no such problem before
As long as the js or css is saved and uploaded, it will be updated immediately...
Suddenly this problem occurred...
What's going on?

阿神阿神2713 days ago783

reply all(2)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-16 17:01:14

    When quoting CSS files, try bringing a version number, href="xxx.css?v=2016"> like this

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-16 17:01:14

    It should be cached, bring www, then press Ctrl+f5 to refresh and see

    reply
    0
  • Cancelreply