Project

General

Profile

Actions

tickets #155002

closed

Webserver customization for security.opensuse.org

Added by cahu 6 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
(Other) Websites
Target version:
-
Start date:
2024-02-06
Due date:
% Done:

0%

Estimated time:

Description

Hi,

thanks for setting up security.opensuse.org in ticket #152482, it is very helpful.
We were tinkering a bit with the page and we found two small issues that could be probably addressed by custom config options on the webserver side:

1) HTTP Caching
Currently new html content is not auto updated on the client side since the content is cached. Currently the Cache-Control header is set to max-age=86400.
Would it be possible to reduce the max-age of Cache-Control for html to: Cache-Control: max-age=3600; or even Cache-Control: max-age=no-cache,no-store; on the webserver?

2) 404 page
Currently the 404 page is set to the default nginx 404 page. I think there is an option in nginx to direct it to the jekyll 404 page: https://security.opensuse.org/404.html
Would it be possible to add this 404 page to the webserver config?

I can also try to fiddle something into the opensuse heroes salt, but since i don't have a testing deployment, i thought it would be probably quicker to ask here :D

Thanks a lot :)

Actions

Also available in: Atom PDF