New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the HTTP header "Cache-Control: immutable" for asset files (css, js, png,...) #133

Closed
dzc34 opened this Issue Feb 4, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@dzc34
Member

dzc34 commented Feb 4, 2018

Observed behaviour

Browser cache is not used enough for asset files (css, js, png,...)

Expected behaviour

Allow these following HTTP headers for asset files (css, js, png,...)

  • Cache-Control: max-age=315360000, public, immutable
  • Cache-Control: max-age=315360000, public

by using:

/public/<version>/js/*
/public/<version>/css/*
/public/<version>/images/*

instead of:

/public/js/*
/public/css/*
/public/images/*

HTTP header "Cache-Control: immutable" documentation

@dzc34 dzc34 closed this in b10a810 Feb 4, 2018

dzc34 added a commit to dzc34/Contrast-Finder that referenced this issue Feb 21, 2018

Contrast-Finder v0.8.5
----------------------

  set version to 0.8.5
  deleted not valid docker image
  Updated prerequisites and install documentation
  Fixed Asqatasun#139 - Upgrading outdated dependency: javaee-web-api (8.0 instead of 7.0)
  Fixed Asqatasun#137 - Upgrading outdated dependency: spring-security (4.2.4 instead of 4.2.3)
  Fixed Asqatasun#135 / Fixed Asqatasun#138 : Upgrading outdated dependencies
  fixed version for urlrewritefilter dependency
  Fixed Asqatasun#134 - Added new Docker image: pre-requisites_Debian_tomcat-9_jre9 (FROM tomcat:9-jre9)
  Fixed Asqatasun#133 - Webapp: allowed the HTTP header "Cache-Control: immutable" for asset files (css, js, png)
  Webapp - Added robots.txt file
  Webapp - Moved asset files (css, js, images) to the public/ directory
  Fixed Asqatasun#132 - Added new Docker image: pre-requisites_Alpine_tomcat-9 (FROM tomcat:9-jre8-alpine)
  Fixed Asqatasun#131 - Changed default docker image: ubuntu-16.04_tomcat-7 instead of ubuntu-14.04_tomcat-7
  Webapp - Added env_debug-info.jsp
  fixed Asqatasun#130 - .jsp file, form tag: use "modelAttribute" instead of deprecated "commandName"
  Fixed Asqatasun#129 - Added custom HTTP error pages instead of Tomcat default pages
  Fixed Asqatasun#128 Webapp - added "charset=UTF-8" HTTP header  for css, js, txt, json and xml files
  Fixed Asqatasun#127 Webapp - Added contribute.json file
  fixed i18n file (korean)
  set version to 0.8.5-SNAPSHOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment