diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5eaaec1eeb8e0f71ff91c5256366cf4315e6decc..058b505ff9ec82c660e0db4d9184c9b176dcc61a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,12 +19,19 @@ build_front:
   image: node:6-alpine
   before_script:
     - cd front
+
   script:
     - npm install
     - npm run build
+    - mv dist /dist
+  cache:
+    key: "$CI_COMMIT_REF_NAME"
+    paths:
+      - front/node_modules
   artifacts:
+    name: "front_${CI_COMMIT_REF_NAME}"
     paths:
-      - front/dist
+      - /dist
   only:
     - master
     - develop