Skip to content

Commit

Permalink
fix log caching and init event timing
Browse files Browse the repository at this point in the history
  • Loading branch information
vintikzzz committed Aug 27, 2024
1 parent 0ff1c42 commit e7f52a1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/src/js/app/embed/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if (c) {
window.addEventListener('click', async () => {
initEmbed(data);
}, { once: true });
message.send('inited');
}

function initPlaceholder(data) {
Expand Down
1 change: 0 additions & 1 deletion assets/src/js/app/embed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ window.addEventListener('load', async () => {
document.body.style.backgroundImage = 'url(' + window._embedSettings.poster + ')';
document.body.style.backgroundSize = 'cover';
}
message.send('inited');
});
2 changes: 1 addition & 1 deletion services/web/job/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func (s *Handler) log(c *gin.Context) {
}

c.Header("Content-Type", "text/event-stream")
c.Header("Cache-Control", "no-cache")
c.Header("Cache-Control", "no-cache,no-store,no-transform")
c.Header("Connection", "keep-alive")
c.Header("Access-Control-Allow-Origin", "*")

Expand Down

0 comments on commit e7f52a1

Please sign in to comment.