[ ukko / epic / a / b / coco / fap / fit / g / hikky / int / m / meta / nom / p / tv / upi / x / yolo ][My] [Replied] [Hidden] [Watched] - [WT] [NT 0] [Home] [Preferences]

[Return]
Posting mode: Reply
Name
Subject
Message
File
Embed
  • Maximum file size allowed is 25MB
  • Images greater than 250x250 pixels will be thumbnailed.
  • View catalog

File 17447911061518344.png - (224.49 KB, 474x339, image.png)
990
Mopsy, you need to force cache refresh when the JS is changed. Simplest way would be to add a query param indicating version like to the script src attributes like:
<script src='/static/js/post.js?123'></script>

Maybe have a shell script that you can run after pushing new version to the server that generates a timestamp and puts it in an include file and use that for version, eg:
echo "<?php \$EBIN_DEPLOYED = $(date +%s);" > includes/deployed_at.php
Expand all images

[Return] [Catalog] 0 Replies • Page 0 • Opened 12 times
Reason

[ ukko / epic / a / b / coco / fap / fit / g / hikky / int / m / meta / nom / p / tv / upi / x / yolo ]