Skip to content

Instantly share code, notes, and snippets.

@dmjcomdem
Created April 22, 2021 07:41
Show Gist options
  • Save dmjcomdem/8f3d47e6541fd8f63a047069dbf8cc4f to your computer and use it in GitHub Desktop.
Save dmjcomdem/8f3d47e6541fd8f63a047069dbf8cc4f to your computer and use it in GitHub Desktop.
Для генерации шаблона и обновлении ссылки на стили, для сброса закешированных css файлов.
'<link rel="stylesheet" href="style.css?%VERSION_STYLE%">'
.replace(/.css?(%VERSION_STYLE%|\d+)/, '?' + Date.now())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment