Browse Source

disable cache test

amenpunk 4 năm trước cách đây
mục cha
commit
6ed7aaa3d8
2 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 5 0
      public/index.html
  2. 1 0
      src/Pages/Login.jsx

+ 5 - 0
public/index.html

@@ -5,6 +5,11 @@
     <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
     <meta name="viewport" content="width=device-width, initial-scale=1" />
     <meta name="theme-color" content="#000000" />
+
+    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
+    <meta http-equiv="Pragma" content="no-cache" />
+    <meta http-equiv="Expires" content="0" />
+
     <meta
       name="description"
       content="Web site created using create-react-app"

+ 1 - 0
src/Pages/Login.jsx

@@ -82,6 +82,7 @@ export function Login() {
                             display: 'flex',
                             flexDirection: 'column',
                             alignItems: 'center',
+                            marginTop : '25%'
                         }}
                     >
                         <Avatar sx={{ m: 1, bgcolor: '#fd4b4b' }}>