score:3
Accepted answer
when using vercel you can configure the headers in your vercel.json
file.
{
"headers": [
{
"source": "/(.*)",
"headers" : [
{
"key" : "cache-control",
"value" : "public, max-age=31536000, immutable"
}
]
}
]
}
Source: stackoverflow.com
Related Query
- How can I implement Cache-Control: public in Vercel
- How can we implement componentWillUnmount using react hooks?
- How can I conditionally disable a control in Storybook based on the value of another argument?
- How can I disable cache on a specific page only in Next.JS
- How can I implement SSO Authentication with Active Directory in React App?
- How can I implement a Web barcode scanner in React to work in browser (desktop/mobile)?
- ReactJS - How can I implement pagination for react with keep state when route change?
- How can I cache data that I already requested and access it from the store using React and Redux Toolkit
- How can I implement a "as" prop with TypeScript while passing down the props?
- How can I cache data from API to Cache Storage in React PWA?
- How can I implement a real partial update with ReactJS?
- How can I avoid "auto-update" cache when using `react-apollo-hooks` and `useSubscription` hook
- How can add all files in public directory to the build directory with parcel-bundler
- How can I add style prop as control in Storybook?
- How can we implement an Open with Postman button to open a postman collection link sent from a third party react application?
- How can I declare a public function in an ES6 class?
- How can I implement destructuring assignment for functional react components props?
- How to implement a simple react multistep control
- How can I cache nested objects with Apollo Client?
- How can I implement lazy loading of data on react table?
- React: How can I control a list of <input> with state?
- How can I control a RadioGroup from material-ui?
- How can I implement right swipe off functionality in a material-UI Snackbar component?
- How can flask serve the react public files
- How can i implement debounced auto save on input change in React?
- How can I implement a movie player on ReactPlayer with presigned cookies from AWS S3
- How can I implement increase or decrease quantity till countInStock of my my e-commerce project with the below code?
- How can you implement a React component in Rust?
- How can I implement Material UI DatePicker & TimePicker? value is undefined
- How can the React useContext hook be used to control application and conditional rendering?
More Query from same tag
- ESLint configuration with typescript jsx
- i met problem with my shopping card in reactjs?
- React: Trying to pass an array to a functional component, but it won't render
- access component `this` from container
- Got Warning message: Each child in a list should have a unique "key" prop. Shown only in a browser, not in a texteditor's console. - React.js
- How to destroy root Preact node?
- How to split logic and states from main component to multiple files
- Update property of certain object inside array in state
- React: Props undefined when passed from Parent to Child Function Component
- Firebase orderByChild not returning an array
- How to 'reset' a ReactJS element?
- Component not shown in the application
- Jest - how to test outcome of promise
- Flow Check Error: fjs.parentNode.insertBefore
- PayPal .Net transfers from a customer to another customer
- Create a dynamic height width image component in react
- How to CORS enable in jasper-server for reactJS?
- updating state array from inside useEffect with passed props
- In React.js, using componentWillUnmount to remove an event listener, how can I make sure the event listener gets removed?
- Getting last value of slider
- React Nested Object Gives Error
- Cannot access 'variableName' before initialization
- Can I customize a CustomInput button from reactstrap?
- How to access navigate parameters within another component?
- Introduce a div between a loop to add flex
- Send to server the new this.state
- Using conditional styles in Material-UI with styled vs JSS
- Why doesn't the message POST
- Graphql/Apollo/React unable to import local images
- Rotating an image based on scroll value with inline style ReactJS