Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Oct 2, 2022
1 parent c71e270 commit dc04970
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions config/static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,35 @@
/**
* Path within storage disk to save files in.
*/
'path' => storage_path('static'),
'path' => storage_path('app/static'),

/**
* Configure a fallback cache driver.
*/
'fallback_cache' => 'memcached',

/**
* Different caches per domain.
* Clear static files before warming up static cache.
* When disabled, the cache is warmed up rather by updating and overwriting files instead of starting without an existing cache.
*/
'include_domain' => true,
'clear_before_warm_up' => false,

/**
* When query string is included, every unique query string creates a new static file.
* HTTP Header that is being sent to web server by warm up command, to recognize and pass through static cache and
* hit the Laravel application on the server.
*/
'include_query_string' => true,
'warm_up_http_header' => 'X-Laravel-Static',

/**
* Set path maximum length (determined by operating system config)
* Different caches per domain.
*/
'filepath_max_length' => 4096,
'include_domain' => true,

/**
* Filename maximum length (determined by operating system config)
* When query string is included, every unique query string combination creates a new static file.
* When disabled, the URL is marked as identical regardless of the query string.
*/
'filename_max_length' => 255,
'include_query_string' => true,

/**
* Define if you want to save the static cache after response has been sent to browser.
Expand All @@ -45,10 +48,15 @@
/**
* Minify HTML before saving static file.
*/
'minify' => true,
'minify_html' => true,

/**
* Clear static files before warming up static cache.
* Set file path maximum length (determined by operating system config)
*/
'clear_before_warm_up' => false,
'filepath_max_length' => 4096,

/**
* Set filename maximum length (determined by operating system config)
*/
'filename_max_length' => 255,
];

0 comments on commit dc04970

Please sign in to comment.