diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index af3cf18beb6eadb25a21c6e7ec973289c62b5f80..c848813359f8531b6f0f33f87aef508918a31bcb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
 image: node:16-buster
 
 cache:
+  key: ${CI_COMMIT_REF_SLUG}
   paths:
     - node_modules/
 
@@ -12,6 +13,11 @@ install_dependencies:
   stage: install
   script:
     - npm ci
+  cache:
+    key: ${CI_COMMIT_REF_SLUG}
+    paths:
+      - node_modules/
+    policy: push
 
 init_backend_server:
   stage: init
@@ -21,4 +27,9 @@ init_backend_server:
     - sleep 20
     - pkill node
   dependencies:
-    - install_dependencies
\ No newline at end of file
+    - install_dependencies
+  cache:
+    key: ${CI_COMMIT_REF_SLUG}
+    paths:
+      - node_modules/
+    policy: pull
\ No newline at end of file