KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

3.25.3: JS/CSS asset load cache-busting #676

Open Leho Kraav opened this topic on on Feb 14, 2019 - 2 comments

Leho Kraav commented on Feb 14, 2019

Browsers can be made to cache assets aggressively. This creates problems when we update KR, but browsers don't recognize the changes in JS/CSS.

KR should implement a simple asset cache busting mechanism, for example based on filemtime() or any hash algorithm.

BAD

https://.../vendor/koolphp/koolreport/src/clients/core/KoolReport.js

BETTER

https://.../vendor/koolphp/koolreport/src/clients/core/KoolReport.js?ver=1550137991

KoolReport commented on Feb 14, 2019

You have a good suggestion. Thanks Leho!

Leho Kraav commented on Feb 14, 2019

Np.

Asset loading "frameworks" may be a rabbit hole, for an example of x+1 considerations in play, see the source of for example this function https://developer.wordpress.org/reference/functions/wp_enqueue_script/

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None