Skip to content

Commit

Permalink
feat: add no cache header to html
Browse files Browse the repository at this point in the history
  • Loading branch information
tc-imba committed Apr 1, 2024
1 parent 25465fd commit 4b89c66
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions example/content/posts/2020-10-02-Hello-World/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,7 @@ for $f\in L^1$, which is the statement of [Lebesgue Differentiation Theorem](htt

[//]: # (<Gist url='https://gist.github.com/GeorgeGkas/5f55a83909a3f5b766934ffe802d30df#file-start-js' />)



<Publication id='pub1' />

2 changes: 1 addition & 1 deletion gatsby-theme-academic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-theme-academic",
"version": "2.1.1",
"version": "2.1.2",
"main": "index.js",
"author": "tc-imba",
"license": "MIT",
Expand Down
4 changes: 4 additions & 0 deletions gatsby-theme-academic/src/components/Seo/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ function SEO({
{ name: 'twitter:image:alt', content: description },
{ name: 'twitter:site', content: siteMetadata.author },
{ name: 'twitter:creator', content: siteMetadata.author },
/* HTTP no cache */
{ 'http-equiv': 'Cache-Control', content: 'no-cache, no-store, must-revalidate' },
{ 'http-equiv': 'Pragma', content: 'no-cache' },
{ 'http-equiv': 'Expires', content: '0' },
]
.concat(metaKeywords) // Keywords
.concat(meta || []) // Other provided metadata
Expand Down

0 comments on commit 4b89c66

Please sign in to comment.