@igea/oac_backend 1.0.91 → 1.0.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igea/oac_backend",
3
- "version": "1.0.91",
3
+ "version": "1.0.92",
4
4
  "description": "Backend service for the OAC project",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -204,6 +204,12 @@ router.post('/upload/vocabularies', upload.array('files'), (req, res) => {
204
204
  router.get('/get-vocabolary-terms/:key', (req, res) => {
205
205
  const key = req.params.key;
206
206
  const cache = CacheVocabularies.check(key);
207
+ res.set({
208
+ 'Cache-Control': 'no-store, no-cache, must-revalidate, proxy-revalidate',
209
+ 'Pragma': 'no-cache',
210
+ 'Expires': '0',
211
+ 'Surrogate-Control': 'no-store'
212
+ });
207
213
  if(cache.exists){
208
214
  res.setHeader('Content-Type', 'application/x-www-form-urlencoded');
209
215
  res.sendFile(path.resolve(cache.path));