How to apply JavaScript fixes (PHP)

当ページのリンクには広告が含まれています。

This article (Japanese) is translated from Google (English).

After editing JavaScript, it is the action when not applied even if reloading the screen.

Use PHP as a method.
I think that it will be useful in environments other than PHP.

Basically, it is sufficient to give the yyyymmddhhmmss format by date, so it can be realized by the following.

The following is added to “main.js? Date =”.
date (‘YmdHis’) ⇒ 20190327234000

This is changed in seconds, so the latest version is applied whenever you reload the screen.

最後までお読み頂き、ありがとうございました!
ご意見・ご要望がありましたら、遠慮なくコメント下さい!

よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!

この記事を書いた人

リーマンショックの影響で26歳の時にIT業界から離れ、紆余曲折を経て34歳でエンジニアに復帰しました。
復帰前は開発未経験でしたが、独学した知識と面接時のコミュニケーション力で見事開発エンジニアとして復帰しました!
今はフリーランスエンジニアとして仕事をしています。

■保有資格
・Java Gold SE 11

コメント

コメントする

CAPTCHA


目次