Skip to content

Commit

Permalink
fix: cache headers
Browse files Browse the repository at this point in the history
  • Loading branch information
katamarinaki committed Aug 27, 2024
1 parent 03f835e commit 5a1c1db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export const CACHE_ALLOWED_LIST_FILES_PATHS = [
{ path: '/settings', headers: CACHE_HEADERS_HTML_PAGE },
{ path: /vote\/(.+)/, headers: CACHE_HEADERS_HTML_PAGE },
{ path: /dashboard\/(.+)/, headers: CACHE_HEADERS_HTML_PAGE },
{ path: /delegation\/(.+)/, headers: CACHE_HEADERS_HTML_PAGE },
{ path: '/delegation', headers: CACHE_HEADERS_HTML_PAGE },
{ path: '/delegation/delegators', headers: CACHE_HEADERS_HTML_PAGE },
]

// use only for cache files
Expand All @@ -24,6 +25,8 @@ export const config = {
'/settings',
'/vote/:voteId*',
'/dashboard/:page*',
'/delegation',
'/delegation/delegators',
],
}

Expand Down

0 comments on commit 5a1c1db

Please sign in to comment.