Skip to content

Commit

Permalink
Disable page caching for now
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGinnivan committed Aug 20, 2024
1 parent fc4b6d2 commit 83b20b5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
3 changes: 1 addition & 2 deletions website/app/routes/_layout.$.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import ImportantDates from '~/components/page-components/important-dates'
import { Button } from '~/components/ui/button'
import getConferenceActions from '~/lib/conference-actions'
import { ConferenceState } from '~/lib/config-types'
import { CACHE_CONTROL } from '~/lib/http.server'
import { css } from '../../styled-system/css'
import { Box, Flex, Grid, styled } from '../../styled-system/jsx'
import { conferenceConfig } from '../config/conference-config'
Expand Down Expand Up @@ -53,7 +52,7 @@ export async function loader({ params, request, context }: LoaderFunctionArgs) {
post: post.code,
conferenceState: context.conferenceState,
},
{ headers: { 'Cache-Control': CACHE_CONTROL.doc } },
// { headers: { 'Cache-Control': CACHE_CONTROL.doc } },
)
}

Expand Down
8 changes: 3 additions & 5 deletions website/app/routes/_layout._index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { HeadersFunction } from '@remix-run/server-runtime'
import { CACHE_CONTROL } from '~/lib/http.server'
import { Hero } from '../components/hero/hero'
import { SkipToContent } from '../components/skip-to-content'

export const headers: HeadersFunction = () => {
return { 'Cache-Control': CACHE_CONTROL.DEFAULT }
}
// export const headers: HeadersFunction = () => {
// return { 'Cache-Control': CACHE_CONTROL.DEFAULT }
// }

export default function Index() {
return (
Expand Down
3 changes: 1 addition & 2 deletions website/app/routes/_layout.agenda.$year.talk.$sessionId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { AppLink } from '~/components/app-link'
import { SponsorSection } from '~/components/page-components/SponsorSection'
import { ConferenceConfigYear, ConferenceImportantInformation, ConferenceYear, Year } from '~/lib/config-types'
import { localeTimeFormat } from '~/lib/dates/formatting'
import { CACHE_CONTROL } from '~/lib/http.server'
import { conferenceConfig } from '../config/conference-config'
import { getConfSessions, sessionsSchema } from '../lib/sessionize.server'

Expand Down Expand Up @@ -60,7 +59,7 @@ export async function loader({ params, context }: LoaderFunctionArgs) {
sessionStart: DateTime.fromISO(session.startsAt).toLocaleString(DateTime.TIME_SIMPLE),
sessionEnd: DateTime.fromISO(session.endsAt).toLocaleString(DateTime.TIME_SIMPLE),
},
{ headers: { 'Cache-Control': CACHE_CONTROL.conf } },
// { headers: { 'Cache-Control': CACHE_CONTROL.conf } },
)
}

Expand Down
3 changes: 1 addition & 2 deletions website/app/routes/_layout.agenda.($year).tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { AppLink } from '~/components/app-link'
import { SponsorSection } from '~/components/page-components/SponsorSection'
import { ConferenceConfigYear, ConferenceImportantInformation, ConferenceYear, Year } from '~/lib/config-types'
import { localeTimeFormat } from '~/lib/dates/formatting'
import { CACHE_CONTROL } from '~/lib/http.server'
import { conferenceConfig } from '../config/conference-config'
import { formatDate, getScheduleGrid, gridSmartSchema } from '../lib/sessionize.server'
import { slugify } from '../lib/slugify'
Expand Down Expand Up @@ -80,7 +79,7 @@ export async function loader({ params, context }: LoaderFunctionArgs) {
}
: undefined,
},
{ headers: { 'Cache-Control': CACHE_CONTROL.conf } },
// { headers: { 'Cache-Control': CACHE_CONTROL.conf } },
)
}

Expand Down

0 comments on commit 83b20b5

Please sign in to comment.