Skip to content

Instantly share code, notes, and snippets.

View browser-cache.patch
diff --git a/app/bundles/CoreBundle/Controller/JsController.php b/app/bundles/CoreBundle/Controller/JsController.php
index 1bd7fda30..a108d9e85 100644
--- a/app/bundles/CoreBundle/Controller/JsController.php
+++ b/app/bundles/CoreBundle/Controller/JsController.php
@@ -33,7 +33,7 @@ class JsController extends CommonController
$dispatcher->dispatch(CoreEvents::BUILD_MAUTIC_JS, $event);
}
- return new Response($event->getJs(), 200, ['Content-Type' => 'application/javascript']);
+ return new Response($event->getJs(), 200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'public, max-age=7200']);
View keybase.md

Keybase proof

I hereby claim:

  • I am nextgens on github.
  • I am nextgens (https://keybase.io/nextgens) on keybase.
  • I have a public key whose fingerprint is DBB7 7338 3BC3 49C9 5203 ED91 EAC5 EBF0 7AA9 C2A3

To claim this, I am signing this object: