DataObjects/Core_domain.php
[Pman.Core] / Asset.php
index a35cdde..20da9b8 100644 (file)
--- a/Asset.php
+++ b/Asset.php
@@ -1,7 +1,9 @@
 <?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 getAuth()
+    {
+        return true;
+    }
+    
     
     function get($s='')
     {
-       
+        
+        $this->sessionState(0);
+        
         $bits = explode('/', $s);
         
         if (empty($bits[0]) || empty($bits[1])  || !isset($this->types[$bits[0]])) {