Adding cache-control

Took 4 minutes
This commit is contained in:
Tobias Hopp 2020-08-07 14:18:18 +02:00
parent 18c55bd052
commit 08318bee66
2 changed files with 4 additions and 3 deletions

View File

@ -12,11 +12,12 @@ try
header( 'ETag: ' . $etag ); header( 'ETag: ' . $etag );
if( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && $_SERVER['HTTP_IF_NONE_MATCH'] === $etag ) if( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && $_SERVER['HTTP_IF_NONE_MATCH'] === $etag )
{ {
//header( 'HTTP/1.1 304 Not Modified', true, 304 ); header( 'HTTP/1.1 304 Not Modified', true, 304 );
//exit(); exit();
} }
$website = new website(); $website = new website();
if( isset( $_POST['submit'] ) ) if( isset( $_POST['submit'] ) )

View File

@ -5,7 +5,7 @@ TITLE = "YourSecretsAreOurs"
MAIN_TITLE = "YourSecretsAreOurs" MAIN_TITLE = "YourSecretsAreOurs"
DESCRIPTION = "Calculate how innocent you still are!" DESCRIPTION = "Calculate how innocent you still are!"
EXPLANATION_QUESTIONS = "Choose which things you have already done.<br>When you are done, just confirm with the button below!" EXPLANATION_QUESTIONS = "Choose which things you have already done.<br>When you are done, just confirm with the button below!"
EXPLANATION_SCORE = "Woosh! Your score is not calculated!" EXPLANATION_SCORE = "Woosh! Your score is now calculated!"
SCORE_FINISHED = "" SCORE_FINISHED = ""
PROJECT_DESCRIPTION = "YourSecretsAreOurs is a small project, which is managed by a few students.<br>It is just for fun and should not be taken too seriously.<br>But... how innocent are you? - That's a good question, isn't it?<br>Do not try to do everything!<br>If you check all the boxes it will result in death." PROJECT_DESCRIPTION = "YourSecretsAreOurs is a small project, which is managed by a few students.<br>It is just for fun and should not be taken too seriously.<br>But... how innocent are you? - That's a good question, isn't it?<br>Do not try to do everything!<br>If you check all the boxes it will result in death."
HELP_US = "Help us!" HELP_US = "Help us!"