Splunk Dev

Avoiding the need for users to Empty Cache and Hard Reload

apc
Engager

Greetings!

I lead the development for 3 interactive React/SUIT apps, and before I go down a rabbit trail testing a few ideas, I wondered if anyone had already found something that might suit my requirement.

Essentially, when promoting a new version (with some added feature(s), etc.) to Production, users have to open their browser's Dev tools, long-click on the browser's Reload button, and select "Empty Cache and Hard Reload". Understandably, they do not like having to take this step.

I have some ideas around incrementing file names to avoid this, but just thought I'd check here to see if anyone else had already come up with a method.

Thanks!

Labels (4)
0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @apc 

It sounds like you need to increment the "build" value in the [install] stanza of app.conf:

build = <integer>
* Required.
* Must be a positive integer.
* Increment this whenever you change files in <app_name>/static.
* Every release must change both 'version' and 'build' settings.
* Ensures browsers don't use cached copies of old static files
in new versions of your app.
* 'build' is a single integer, unlike 'version' which can be a complex string,
such as 1.5.18.

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

apc
Engager

Thanks, @livehybrid - wasn't even aware of that param. I'll give that a shot and reply here with results the next time I promote a new version.

0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...