import { DynamicCaches } from '@iqser/common-ui';

export const CHANGED_CHECK_INTERVAL = 5000;
export const FALLBACK_COLOR = '#CCCCCC';

export const UI_CACHES: DynamicCaches = [
    {
        urls: ['/assets/icons', '/assets/wv-resources'],
        name: 'cached-assets',
        clearOnLogout: false,
        maxAge: 24 * 3600,
        maxSize: 1000,
        methods: ['GET'],
    },
    {
        urls: ['/download/original'],
        name: 'files',
        maxAge: 3600 * 24 * 7,
        maxSize: 1000,
        clearOnLogout: true,
        methods: ['GET'],
    },
    {
        urls: ['/download/viewer_doc'],
        name: 'files',
        maxAge: 3600 * 24 * 7,
        maxSize: 1000,
        clearOnLogout: true,
        methods: ['GET'],
    },
];
