mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Set no-cache header on extension sources (#9186)
This should hopefully fix caching issues some users were experiencing.
This commit is contained in:
committed by
GitHub
parent
d4af01bf5a
commit
ba2f8750e9
@@ -47,6 +47,8 @@ router.get(
|
||||
}
|
||||
|
||||
res.setHeader('Content-Type', 'application/javascript; charset=UTF-8');
|
||||
res.setHeader('Cache-Control', 'no-cache');
|
||||
res.setHeader('Vary', 'Origin, Cache-Control');
|
||||
res.end(extensionSource);
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user