How to cache a response that has been genereated using the expressjs route. This route has a lot of access to the database, and there are very few changes to it. Is there a node avaialble module.
thanks
connect-cache should do the trick. Add this to your application as middleware.
var connect_cache = require('connect-cache'); app.use( connect_cache({rules: [{regex: /.*/, ttl: 60000}]}) );
Source: https://habr.com/ru/post/1490341/More articles:SSIS: using multicast to enter data in 2 RELATED directions - sqlHTTP Authentication with AngularJS and Digest - angularjsSticky Tables - javascript"Error L10 (output buffer overflow)" when writing to Splunk drain - loggingError PyImport_Import (returns NULL) - chttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1490342/play-2-external-configuration-file-fails-to-load-in-production-mode&usg=ALkJrhgIL2tGqUJ5fw08wvAGgv8C3hnvQgProblems with C # Console Program - c #ios table with dynamic partitions and two different prototype cells - iosThe default number of players in a turn-based game? (OS X) - osx-mountain-lioniOS - childViewController does not accept events - iosAll Articles