List of commits:
Subject Hash Author Date (UTC)
Use HTTP/1.1 caching only with HTTP/1.1 protocol. 7998f5b0ba9cbd06deb5a5e5270629f9213cf2b7 Catalin(ux) M. BOIE 2015-06-18 21:46:13
Bumpped version to 0.34 65d54e7a4a50527a22a4a325a2fb423b60acc77d Catalin(ux) M. BOIE 2015-06-09 16:06:42
More stuff in TODO. 16bce74aefff9696959c7b186031a4b4e36a1d79 Catalin(ux) M. BOIE 2015-06-09 16:05:05
More design stuff. a87db7c7448cd59cd2f56fb108c5ed12f01d4e06 Catalin(ux) M. BOIE 2015-06-09 16:04:49
Fixed UTF-8 chars whn connecting by ssh and issueing command repos c363832f1e7c6bc3672f823ac5c0c2f3244b4615 Catalin(ux) M. BOIE 2015-06-09 16:04:04
Add caching by using ETag / If-None-Match 132cd07d19e33b382ab4e7a0a0b0e057fe316652 Catalin(ux) M. BOIE 2015-06-09 16:03:27
Add debug support for rpm instalation. c091b24f82c135b5606181f417d2f18151d951ae Catalin(ux) M. BOIE 2015-06-06 11:00:44
SSH key fingerprint: add SHA256 support f774edcd0c17f66dd4de54aa35a543bbafaff609 Catalin(ux) M. BOIE 2015-06-04 20:31:35
Put features first in menu 33a9cef11227407d2cdf63056e71b66dd6106f62 Catalin(ux) M. BOIE 2015-06-02 19:44:51
Switch to v2 images e0d94a44d7093be83b82ea5227c0afcba22a5d27 Catalin(ux) M. BOIE 2015-05-27 03:36:13
Remove 'qcow2' reference because was not the place ec800590fd07b69f377387c8353d50f6a9430ff8 Catalin(ux) M. BOIE 2015-05-27 03:35:32
Instruct used to follow the README file after rpm install 1e1f092339a0fb4ab7c7ead080d68c1d04686d29 Catalin(ux) M. BOIE 2015-05-27 03:30:23
Lots of fixes, mostly on templating stuff. eb7e8f94fa4a2f5d82f913bcd7113287172cd450 Catalin(ux) M. BOIE 2015-05-25 18:51:36
Lots of changes all over the place. 9b39ce5e62255ff390926ef11c37b98d1d8751d2 Catalin(ux) M. BOIE 2015-05-22 03:25:46
Invites now accepts a file as the body of the e-mail and php_errormsg fixes. 31ccba6e43e02c34fa2139fe352c3799feecd249 Catalin(ux) M. BOIE 2015-05-09 04:17:40
Allow compression inside TLS 00828bd5eaf5ad08ff7736a6c5627c21179a8e20 Catalin(ux) M. BOIE 2015-05-06 17:09:07
Bump version to 0.32 8a9194a00721f0f6c55ab4bc986e23962357f250 Catalin(ux) M. BOIE 2015-05-05 21:20:30
Small fixes all over the place baaa5336810128456e63d5e5a8cb111c81fe162d Catalin(ux) M. BOIE 2015-05-05 21:20:12
Forgot to initialize a variable. beca8b9e01c37c6101f9a61f8ecf8cb744f1bd41 Catalin(ux) M. BOIE 2015-05-04 22:23:37
Bump version to 0.31 a03215399419416798da2fbaf51a71959f112bc6 Catalin(ux) M. BOIE 2015-05-04 21:52:29
Commit 7998f5b0ba9cbd06deb5a5e5270629f9213cf2b7 - Use HTTP/1.1 caching only with HTTP/1.1 protocol.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2015-06-18 21:46
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2015-06-18 21:46
Parent(s): 65d54e7a4a50527a22a4a325a2fb423b60acc77d
Signing key:
Tree: 3ea0bfeb7c7e4ce0f51b5748a16a9256a59418a2
File Lines added Lines deleted
root/index.php 18 13
File root/index.php changed (mode: 100644) (index 4a18a23..e5dc14c)
... ... if ($rg['login_ui']['uid'] > 0) {
155 155
156 156
157 157 $rg['HTML:rg_body'] = $body; $rg['HTML:rg_body'] = $body;
158 // DEBUG: aici deja e busit content-ul! Merg inapoi pe fir.
159 158 $_c = rg_template("index.html", $rg, TRUE /* xss */); $_c = rg_template("index.html", $rg, TRUE /* xss */);
160 159
161 160 header('Cache-Control: private, no-cache'); header('Cache-Control: private, no-cache');
162 161
163 162 // Caching // Caching
164 $we_have = sha1($_c);
165 if (isset($_SERVER['HTTP_IF_NONE_MATCH']))
166 $client_have = $_SERVER['HTTP_IF_NONE_MATCH'];
167 else
168 $client_have = '';
169
170 if (strcmp($client_have, $we_have) == 0) {
171 rg_log('Client has the right version');
172 header('HTTP/1.1 304 Not modified');
173 header('ETag: ' . $we_have);
163 $proto = rg_var_str('SERVER_PROTOCOL');
164 rg_log('DEBUG: proto=' . $proto);
165 if (strcmp($proto, 'HTTP/1.1') == 0) {
166 $we_have = sha1($_c);
167 if (isset($_SERVER['HTTP_IF_NONE_MATCH']))
168 $client_have = $_SERVER['HTTP_IF_NONE_MATCH'];
169 else
170 $client_have = '';
171
172 if (strcmp($client_have, $we_have) == 0) {
173 rg_log('CACHE: Client has the right version');
174 header('HTTP/1.1 304 Not modified');
175 header('ETag: ' . $we_have);
176 } else {
177 rg_log('CACHE: Client has NOT the right version [' . $client_have . ']');
178 header('ETag: ' . $we_have);
179 echo $_c;
180 }
174 181 } else { } else {
175 rg_log('Client has NOT the right version [' . $client_have . ']');
176 header('ETag: ' . $we_have);
177 182 echo $_c; echo $_c;
178 183 } }
179 184
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