Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Use same serve settings in dev and prod #1276

Closed
wants to merge 1 commit into from

Conversation

benmccann
Copy link
Member

It's unnecessary to disable the cache in development mode because all files under client/ contain hashes and so will not be cached if their contents change

Removing this has two benefits:

  • Faster reloads in development
  • Makes dev more like prod

@Conduitry
Copy link
Member

It's probably indeed safe to cache the files under /client/ but I don't think it is to cache the other ones this serves.

@benmccann
Copy link
Member Author

Oops. yeah I didn't realize it was serving multiple directories. #1277 is a better alternative

@benmccann benmccann closed this Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants