equal
deleted
inserted
replaced
69 'md5.js', |
69 'md5.js', |
70 'enano-lib-basic.js', |
70 'enano-lib-basic.js', |
71 'pwstrength.js', |
71 'pwstrength.js', |
72 'sha256.js', |
72 'sha256.js', |
73 'flyin.js', |
73 'flyin.js', |
|
74 'rank-manager.js', |
74 'template-compiler.js', |
75 'template-compiler.js', |
75 'toolbar.js', |
76 'toolbar.js', |
76 'diffiehellman.js', |
77 'diffiehellman.js', |
77 'enanomath.js' |
78 'enanomath.js' |
78 ); |
79 ); |
165 header('HTTP/1.1 304 Not Modified'); |
166 header('HTTP/1.1 304 Not Modified'); |
166 exit(); |
167 exit(); |
167 } |
168 } |
168 } |
169 } |
169 |
170 |
|
171 // generate expires header |
|
172 $expires = date('r', mktime(-1, -1, -1, -1, -1, intval(date('y'))+1)); |
|
173 |
170 $everything = str_replace('/* JavaScriptCompressor 0.8 [www.devpro.it], thanks to Dean Edwards for idea [dean.edwards.name] */' . "\r\n", '', $everything); |
174 $everything = str_replace('/* JavaScriptCompressor 0.8 [www.devpro.it], thanks to Dean Edwards for idea [dean.edwards.name] */' . "\r\n", '', $everything); |
171 |
175 |
172 $date = date('r', $apex); |
176 $date = date('r', $apex); |
173 header("Date: $date"); |
177 header("Date: $date"); |
174 header("Last-Modified: $date"); |
178 header("Last-Modified: $date"); |
175 header("ETag: \"$etag\""); |
179 header("ETag: \"$etag\""); |
|
180 header("Expires: $expires"); |
176 |
181 |
177 echo $everything; |
182 echo $everything; |
178 |
183 |
179 if ( $do_gzip ) |
184 if ( $do_gzip ) |
180 { |
185 { |