All Apps and Add-ons

Why is my ServerSideInclude update not being picked up?

mctester
Communicator

I am using the ServerSideInclude feature to add custom javascript to a module.

The problem comes up when I take a running system and try to edit the javascript. The system seems to be unable to load any modified content. This happens on any browser but using Firebug I can see that the file has a 304 response and gives a "Failed to load source" msg.

The end result is that my code is not loaded and I just get blanks in the area where I would have had custom widgets. Starting and stopping splunk does not seem to help the situation.

The issue does seem to affected by the amount of the change. Small changes are ok but after some threshold is reach (multiple lines) the behaviour occurs where the file is not loaded.

Is there another cache I can flush to ensure the code is always loaded? Other ideas?

0 Karma
1 Solution

Mick
Splunk Employee
Splunk Employee

Have you heard of the bump endpoint ??

If you hit /info on any instance, and there's a link called static resource cache control near the bottom of the page. Click that and it'll allow you to increment the "bump" number on the instance.

We cache static files very aggressively. Ctrl+ will refresh it for you, but not for your other users. Clicking the bump endpoint works for all because it changes all the static URL's for everyhing on the entire server

View solution in original post

Mick
Splunk Employee
Splunk Employee

Have you heard of the bump endpoint ??

If you hit /info on any instance, and there's a link called static resource cache control near the bottom of the page. Click that and it'll allow you to increment the "bump" number on the instance.

We cache static files very aggressively. Ctrl+ will refresh it for you, but not for your other users. Clicking the bump endpoint works for all because it changes all the static URL's for everyhing on the entire server

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...