List of commits:
Subject Hash Author Date (UTC)
Activate the caching also for HTTP/2.0 063b7e36532874272048f1d193176499e834b0a0 Catalin(ux) M. BOIE 2017-07-06 18:24:34
Improve host name auto-detection problems to work in VM env b56dd82ac1db3ca2cc4478af65b27909f05dd228 Catalin(ux) M. BOIE 2017-07-06 17:58:10
compare: added number of lines c847d9da61749de86ffa0199f26cd68f4b80cc3a Catalin(ux) M. BOIE 2017-07-06 17:53:57
Added a make target to compute the number of lines 8695380c12480b1b7b8bc9c5f1ec63a115742d9f Catalin(ux) M. BOIE 2017-07-06 17:53:16
tests: fixed wh_http - time race closed 8f182423103c8fc2a4be10840b08be0564e2c814 Catalin(ux) M. BOIE 2017-07-02 07:01:12
Add texts about the under age and about what laws you have to respect 65af692eec97a62e7c2212e558aa3b6bc4d925ba Catalin(ux) M. BOIE 2017-07-01 20:21:06
If we get an error when checking the db version, just exit, do not try to do updates. 20a3c8e9fbcadcab05c1a24428b06c7dc6c39f7d Catalin(ux) M. BOIE 2017-06-30 18:56:45
rpm: Forgot to create nginx conf.d folder a2d33471bd782be5aea6ea72f8e21842fc3be07d Catalin(ux) M. BOIE 2017-06-25 10:25:42
Bumped version to 0.69 2411fe5ef068cf6a8b546edcecaac25363755275 Catalin(ux) M. BOIE 2017-06-25 08:20:15
TODO updates 56321b504fdcb1724f590981b29e6731ba0c8607 Catalin(ux) M. BOIE 2017-06-25 08:19:11
tests: switch to nginx; small fixes for the 'log' test 6c75b7de3db4135071155fcaebc4b7220ee966ed Catalin(ux) M. BOIE 2017-06-25 08:18:20
Apache sample config fixes a030309a796a84b99bc9568fe81291305492bf10 Catalin(ux) M. BOIE 2017-06-25 07:59:46
Small text changes 45797dbaf71ec5c922a8ed6e7b9497da64807eb4 Catalin(ux) M. BOIE 2017-06-25 07:58:25
tests: added a test with 500 10k commits ad3ce91ff291b9537ceca11995268e45a17407ef Catalin(ux) M. BOIE 2017-06-25 07:57:37
css: added warning_text class 17a1930f1661392629f3787cdd0150e971496512 Catalin(ux) M. BOIE 2017-06-25 07:56:48
web: the jump to a file did not work because of a wrong anchor bbb95d3a79ea686b3c145b532d072fc19c034297 Catalin(ux) M. BOIE 2017-06-25 07:53:52
css: when diff is too big, show it inline not as a ugly block 9fff8e0248793fc7a2d1346dc8af7ba1aa2fb7ea Catalin(ux) M. BOIE 2017-06-25 07:50:58
Small fixes to the 'download' section documentation a19ca599f6e6ec064952cc1d8f9ea3edd7947254 Catalin(ux) M. BOIE 2017-06-25 07:50:11
Fixes for base_url: did not work for docker (bad switch to https) 4aee622d5e845a9e308f7277af1a1b612fc0c173 Catalin(ux) M. BOIE 2017-06-25 07:49:17
Fixed the commit show page (showing multiple commits) 3e932d79f05be2593cb4c62a58cc0f98704ba5d7 Catalin(ux) M. BOIE 2017-06-25 07:48:21
Commit 063b7e36532874272048f1d193176499e834b0a0 - Activate the caching also for HTTP/2.0
Author: Catalin(ux) M. BOIE
Author date (UTC): 2017-07-06 18:24
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2017-07-06 18:24
Parent(s): b56dd82ac1db3ca2cc4478af65b27909f05dd228
Signer:
Signing key:
Signing status: N
Tree: 09fd1678c939dee38ab0b3e61a11736ac1387c6a
File Lines added Lines deleted
root/index.php 2 2
File root/index.php changed (mode: 100644) (index b5fe604..7e6b75a)
... ... header('Cache-Control: private, no-cache');
289 289
290 290 // Caching // Caching
291 291 $proto = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : ''; $proto = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : '';
292 if (strcmp($proto, 'HTTP/1.1') == 0) {
292 if ((strcmp($proto, 'HTTP/1.1') == 0) || (strcmp($proto, 'HTTP/2.0') == 0)) {
293 293 $we_have = sha1($_c); $we_have = sha1($_c);
294 294 if (isset($_SERVER['HTTP_IF_NONE_MATCH'])) if (isset($_SERVER['HTTP_IF_NONE_MATCH']))
295 295 $client_have = $_SERVER['HTTP_IF_NONE_MATCH']; $client_have = $_SERVER['HTTP_IF_NONE_MATCH'];
 
... ... if (strcmp($proto, 'HTTP/1.1') == 0) {
298 298
299 299 if (strcmp($client_have, $we_have) == 0) { if (strcmp($client_have, $we_have) == 0) {
300 300 rg_log('CACHE: Client has the latest version; no need to resend'); rg_log('CACHE: Client has the latest version; no need to resend');
301 header('HTTP/1.1 304 Not modified');
301 header($proto . ' 304 Not modified');
302 302 } else { } else {
303 303 header('ETag: ' . $we_have); header('ETag: ' . $we_have);
304 304 echo $_c; echo $_c;
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main