Which of the following strategies can be used to efficiently serve static assets and optimize performance?
- Caching static assets at the server-side.
- Using long, descriptive file names for static assets.
- Serving static assets through a Content Delivery Network (CDN).
- Storing static assets in a database.
Serving static assets through a Content Delivery Network (CDN) is an efficient strategy to optimize performance by distributing assets across geographically distributed servers, reducing latency and improving load times. The other options either don't directly address performance optimization or provide incorrect methods.
Loading...
Related Quiz
- How does ESLint's --fix option handle issues that it can't automatically fix?
- The ______ header is often used to pass the authentication token from the client to the server in HTTP requests.
- What does the resolve function do in a JavaScript Promise?
- What are the implications of choosing an improper data type for a field in a database schema on storage and performance?
- You are tasked with optimizing the build process of a Node.js application. How can the scripts section in the package.json file aid in automating and enhancing the build process?