forked from ttc/micro-frontend
feat: เพิ่มระบบ caching
- เพิ่ม caching interceptor และ service - เพิ่ม configสำหรับ caching
This commit is contained in:
11
accounting-ng-nuttakit/src/app/config/caching.config.ts
Normal file
11
accounting-ng-nuttakit/src/app/config/caching.config.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export const CACHEABLE_URLS = {
|
||||
GET: [
|
||||
// Add GET URIs here that you want to cache
|
||||
// e.g., '/api/data'
|
||||
],
|
||||
POST: [
|
||||
'/api/web/accountingSearch'
|
||||
// Add POST URIs here that you want to cache
|
||||
// e.g., '/api/search'
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user