Project

General

Profile

Feature #5746

Add a configuration option for wthttpd to set expiration duratio

Added by Kayra Akman almost 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
06/05/2017
Due date:
% Done:

0%

Estimated time:
#1

Updated by Kayra Akman almost 5 years ago

I was expecting to interact with browsers autocorrection when I pressed Enter.

Currently, wthttpd sets an expiration duration of 1 hour to static resources served from the docroot/resources folder. A configuration option in wt config file to set a different duration would be a nice way to improve performance.

Wthttpd is very useful and practical for a lot of use cases. IMO, those use cases are more suitable for long expiration durations for static resources than when Wt is used behind a full-fledged web server. The default 1 hour expiration duration is too short for static resources. Since WResource allows serving resources with infinite flexibility, it is a missing opportunity for performance if it is not possible to better use browser caches for static resources.

Also available in: Atom PDF