Replies: 1 comment
-
Solved it using a simple form, requesting a "get refresh-all" class Routes::RefreshAll < Bridgetown::Rack::Routes
route do |r|
# route: GET /hello/:name
r.get "refresh-all" do
item = Bridgetown::Model::Base.find( "repo://page/alle.md" )
item.render_as_resource.output
end
end
end This initiates a new cycle of ssh-requests and displays the "alle" page. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to realize some automation tasks with bt-ssr.
Got a table
where Status is a simple component, fetching some data via ssh
In my imagination, I thought by reinitializing the Status-Object for each table row, a connection to the remote computer is established and the table shows which clients are offline and/or not properly started.
This works after starting the bt-server. (Server-Response: 200)
A Simple reload (pressing "f5") is transmitted to the bt-server. However, cached data are returned. The remote-computer are not accessed and the table is not updated! (Server-Response: 304)
How to control the behaviour of the cache?
edit:
I disabled the browser-cache through meta tags
Beta Was this translation helpful? Give feedback.
All reactions