Skip to content

Commit

Permalink
Add full-page caching and locally-built and purge Tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed Jan 22, 2021
1 parent 52c3b6d commit 199a158
Show file tree
Hide file tree
Showing 12 changed files with 184,649 additions and 217 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/node_modules
/public/page-cache
/public/hot
/public/storage
/storage/*.key
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ A canonical source of everything you need to know about Laravel versions' suppor
php -S localhost:8080 -t public
```
1. Run tests with `php artisan test`.

> Note: In order to make page caching work, you'll need to follow the installation instructions if you're installing this site on a production server. https://github.com/JosephSilber/page-cache
1 change: 1 addition & 0 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Kernel extends HttpKernel
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
\Silber\PageCache\Middleware\CacheResponse::class,
],

'api' => [
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5"
"laravel/tinker": "^2.5",
"silber/page-cache": "^1.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.5",
Expand Down
65 changes: 64 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 199a158

Please sign in to comment.