[ACA-1558] cache busting for index.html (#888)

This commit is contained in:
Denys Vuika 2019-01-04 09:36:16 +00:00 committed by GitHub
parent 8fff3b5582
commit 2d59a3354e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 48 deletions

View File

@ -23,5 +23,11 @@ http {
location / { location / {
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
location ~ \.html$ {
add_header Cache-Control "private, no-cache, no-store, must-revalidate";
add_header Expires "Sat, 01 Jan 2000 00:00:00 GMT";
add_header Pragma no-cache;
}
} }
} }

View File

@ -1,12 +1,20 @@
<!doctype html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8" />
<title>Alfresco Content App</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Important: cache busting for index.html -->
<link rel="icon" type="image/png" href="favicon-96x96.png" sizes="96x96"> <meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<title>Alfresco Content App</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" href="favicon-96x96.png" sizes="96x96" />
<style> <style>
@keyframes bouncing-loader { @keyframes bouncing-loader {