<?php
/**
- * Generic cached assset server... -- No security o this..
+ * Generic cached assset server... -- No security om this.. should only return compressed CSS/JS
+ *
+ * Does a few tricks with headers to improve caching...
*
*
* Also includes code to generate assets...
require_once 'Pman.php';
class Pman_Core_Asset extends Pman {
-
-
+
var $types = array(
'css' => 'text/css',
'js' => 'text/javascript',
function get($s='')
{
-
+
+ $this->sessionState(0);
+
$bits = explode('/', $s);
if (empty($bits[0]) || empty($bits[1]) || !isset($this->types[$bits[0]])) {