PHP files do not update CSS and Javascript changes

-1

This had already happened to me previously, but I resolved by giving a CTRL + F5. Now NOTHING works. I've rebooted the wamp several times, rebooted the computer and nothing. The curious thing is that it only happens on php pages. The html pages are updating normally. I know it's a cache problem, but I do not know what to do to resolve it.

    <html lang="pt-br">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../css/pequeno.css" media="screen and (min-width: 0px)" rel="stylesheet" type="text/css">
    <link href="../css/medio.css" media="screen and (min-width: 1000px)" rel="stylesheet" type="text/css">
    <link href="../css/estilo.css" media="screen and (min-width: 1500px)" rel="stylesheet" type="text/css">
    <title>Página principal</title>
  </head>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><scripttype="text/javascript" src="scripts.js"></script>
    
asked by anonymous 25.06.2017 / 20:13

1 answer

0

Then, place a random number at the end of each file, so the browser will not find it in the cache and will fetch it from the server.

<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="../css/pequeno.css?<?php echo rand(1, 1000);?>" media="screen and (min-width: 0px)" rel="stylesheet" type="text/css">
<link href="../css/medio.css?<?php echo rand(1, 1000);?>" media="screen and (min-width: 1000px)" rel="stylesheet" type="text/css">
<link href="../css/estilo.css?<?php echo rand(1, 1000);?>" media="screen and (min-width: 1500px)" rel="stylesheet" type="text/css">
<title>Página principal</title>
</head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><scripttype="text/javascript" src="scripts.js?<?php echo rand(1, 1000);?>"></script>
    
25.06.2017 / 21:09