refactor(favicon): improve cache and error handling

This commit is contained in:
yusing
2025-10-05 20:37:27 +08:00
parent f4f104d206
commit 6051f75145
11 changed files with 109 additions and 239 deletions

View File

@@ -6,7 +6,6 @@ import (
"github.com/yusing/godoxy/agent/pkg/agent"
"github.com/yusing/godoxy/agent/pkg/agentproxy"
"github.com/yusing/godoxy/internal/homepage"
"github.com/yusing/godoxy/internal/idlewatcher"
"github.com/yusing/godoxy/internal/logging/accesslog"
gphttp "github.com/yusing/godoxy/internal/net/gphttp"
@@ -150,8 +149,6 @@ func (r *ReveseProxyRoute) Start(parent task.Parent) gperr.Error {
routes.HTTP.Del(r)
})
}
r.task.OnCancel("reset_favicon", func() { homepage.PruneRouteIconCache(r) })
return nil
}