mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-22 22:10:43 +02:00
fixed comment typo
This commit is contained in:
1 parent
ab7194a639
commit
79f6f4ee60
1 file changed
+1
-1
+1
-1
@@ -79,7 +79,7 @@ func Serve(app core.App, config ServeConfig) error {
|
|||||||
|
|
||||||
pbRouter.GET("/_/{path...}", Static(ui.DistDirFS, false)).
|
pbRouter.GET("/_/{path...}", Static(ui.DistDirFS, false)).
|
||||||
BindFunc(func(e *core.RequestEvent) error {
|
BindFunc(func(e *core.RequestEvent) error {
|
||||||
// ingore root path
|
// ignore root path
|
||||||
if e.Request.PathValue(StaticWildcardParam) != "" {
|
if e.Request.PathValue(StaticWildcardParam) != "" {
|
||||||
e.Response.Header().Set("Cache-Control", "max-age=1209600, stale-while-revalidate=86400")
|
e.Response.Header().Set("Cache-Control", "max-age=1209600, stale-while-revalidate=86400")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user