Skip to content

Commit

Permalink
set cache header fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulchen-Panther authored Apr 5, 2024
1 parent 7cd4ab6 commit 0d816ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/.vitepress/configs/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import type { HeadConfig } from 'vitepress'
const BASE_DIR = process.env.BASE_DIR ?? '/'

export const head: HeadConfig[] = [
['meta', {'http-equiv': 'cache-control', content: 'no-cache, no-store, must-revalidate'}],
['meta', {'http-equiv': 'pragma', content: 'no-cache'}],
['meta', {'http-equiv': 'expires', content: '0'}],

['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: BASE_DIR + 'icons/favicon-16x16.png' }],
['link', { rel: 'icon', type: 'image/png', sizes: '32x32', href: BASE_DIR + 'icons/favicon-32x32.png' }],
['link', { rel: 'icon', type: 'image/png', sizes: '96x96', href: BASE_DIR + 'icons/favicon-96x96.png' }],
Expand Down

0 comments on commit 0d816ec

Please sign in to comment.