Question · NestJS course · Module 8: Caching and Performance

CacheInterceptor in NestJS

@UseInterceptors(CacheInterceptor) automatically:

Answer options

  • Validates input parameters
  • Compresses HTTP responses
  • Logs all requests to a file
  • Caches endpoint responses based on URL

You can check the correct answer by solving this task in the CodeWorlds game.