Skip to content

Turn off browser caching for local DEV work? #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mosaiceye opened this issue Dec 19, 2015 · 4 comments
Closed

Turn off browser caching for local DEV work? #114

mosaiceye opened this issue Dec 19, 2015 · 4 comments

Comments

@mosaiceye
Copy link

When using this docker file for local development, my local PHP file updates don't happen right away. How can I disable browser caching? For local dev, work? I'm currently using Kitematic (Beta) 0.9.4, with my WP code pointing to a local folder on my host MAC from within my User/Sites folder. Any ideas on how to change this?

@tianon
Copy link
Member

tianon commented Jan 22, 2016

This is heavily related to the discussion following #103 (comment).

I think it might actually make sense to remove the explicit setting of opcache.revalidate_freq from our default configuration, since the default value of 2 (https://secure.php.net/manual/en/opcache.configuration.php) for how often opcache will do a stat to determine freshness really ought to be a fairly reasonable compromise (especially since stat is a reasonably lightweight op, especially compared to recompiling the file).

@tianon
Copy link
Member

tianon commented Jan 22, 2016

(ie, it's not actually browser caching that's biting you, but the PHP opcache)

@tianon
Copy link
Member

tianon commented Aug 22, 2016

@yosifkit what do you think about either setting a more conservative value for our provided opcache.revalidate_freq or just using the more conservative default value?

@yosifkit
Copy link
Member

yosifkit commented Aug 22, 2016

Setting ours to be explicitly 2 gives us the same as the default, but also makes it obvious where the value comes from. (ie, the users know what they need to override)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants