T
T
toaster khabrovich2016-01-28 09:49:12
PHP
toaster khabrovich, 2016-01-28 09:49:12

How to disable caching of scripts and styles in MAMP?

while testing my site on a local server, I noticed that clearing the browser history does not help - old scripts continue to work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2016-01-28
@studententer

add a random parameter to the paths to scripts / styles, like this:
/style.css?<?php echo sha1(microtime(1)); ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question