фиксы

This commit is contained in:
2026-07-24 02:02:37 +08:00
parent f93e2e8372
commit 349ea7e91e
6 changed files with 75 additions and 163 deletions

View File

@@ -1,10 +1,10 @@
// Подгрузка CSS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
int main() {
// Проверяем, существует ли файл стилей
char css_path[1024] = "/home/romkazvo/www/cgi-bin/style.css";
struct stat st;
@@ -15,8 +15,9 @@ int main() {
return 1;
}
// Отдаем CSS с правильными заголовками
printf("Content-type: text/css\n");
printf("Cache-Control: public, max-age=3600\n\n");
printf("Cache-Control: public, max-age=3600\n\n"); // Кэшируем на 1 час
FILE *css_file = fopen(css_path, "r");
if (!css_file) {