How can I force browser to refresh the cache with php?

716 Views Asked by At

I am a beginner web "developer". I'm making the site of our dog kennel. I've been facing the cache problem for days. I found out PHP filemtime could do the job, I just want to ask, if I put the PHP code like this, would it work? If not, could you help me please, how to do this?

<link rel="stylesheet" type="text/css" href="../../../styles/basic.css?v=<?php filemtime('../../../styles/basic.css') ?>"/>
0

There are 0 best solutions below