Project

General

Profile

Feature #2753

Add an option to make jQuery and Wt javascript library cacheable on the client

Added by Peter K over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
03/04/2014
Due date:
% Done:

0%

Estimated time:

Description

Cacheable jQuery and Wt javascript files should speed things up, in usage cases when sessions are created frequently, I think.

Currently it's possible to cache jQuery on the client by calling requireJQuery() and pointing it to Google CDN. However, the Wt javascript "library" still gets loaded on every session creation (that's about 70 kB being downloaded).

Also it would be nice if static files could be served with the cacheable HTTP headers, for example by using something like this:

WServer::setCacheable (const std::string& fileName, int expirationInSeconds);

No data to display

Also available in: Atom PDF