Hey everybody.
I have a question about how can I handle editing css avoiding the cache.
Wappler don’t recognize the workaround I use (with a good reason, of course).
The thing is the site I’m working on has some users and if I publish an edited css, well the feedback won’t be good.
That’s why I’m using:
css/style.css?ver=1
to “force” the load.
In fact, I’m using:
href="css/style.css<?php echo '?rnd='.mt_rand(); ?>" />
so I don’t need to manually change it on every file.
The solution works as expected on every user browser, but when I go back to Wappler, it wont let me edit the file cause it doesn’t recognize the path, so I comment everytime the link lines when I need to make a change:
<!-- <link rel="stylesheet" type="text/css" href="css/style.css<?php echo '?rnd='.mt_rand(); ?>" /> -->
<link rel="stylesheet" href="css/style.css" />
I have no problem on comment a line, as I achieve the result I want, but:
There’s out there a better way to handle this?
Thanks in advance.