Issue I am developing a simple website using PHP. Development Configuration : WAMP Production Configuration : LAMP While testing, I changed my CSS file, but when I reload the page my browser(not sure) still uses the old cached css. I
Continue readingTag: caching
[SOLVED] how to deny all unexcepted host headers 403 forbidden? Apache 2.4
Issue Hi I am trying to deny all unexcepted host headers to stop them from appearing in the mod pagespeed cache folder. I tried to implement the following but on an apache 2.4 server – you can lock down your
Continue reading[SOLVED] Caching in rails for the duration of a request
Issue I’ve got a situation where I’d like to cache information from a static method, because the it’s called many times. The information is only valid for the duration of the request, so I don’t want to use Rails cache.
Continue reading[SOLVED] Rails.cache.fetch exception: TypeError (<ModelName> can't be referred to)
Issue I’m implementing some caching by using the nifty Rails.cache.fetch. However, in one particular instance, sometimes I encounter an exception: TypeError in EmloController#index Emlo can’t be referred to app/controllers/emlo_controller.rb:320:in `get_employees’ app/controllers/emlo_controller.rb:356:in `prepare_json_response’ app/controllers/emlo_controller.rb:23:in `block (2 levels) in index’ app/controllers/emlo_controller.rb:15:in `index’
Continue reading[SOLVED] How to avoid recalculation when sorting by a model's property in Django Rest Framework?
Issue I have a simple social media app, with User, Post, and PostVote models. class Post(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) user = models.ForeignKey(User, on_delete=models.SET_NULL, null=True) … @property def score(self): total = 0 for vote in PostVote.objects.all(): if vote.post ==
Continue reading[SOLVED] docker-compose keeps using old image content
Issue We use our gitlab-ci to build fresh images with the latest version of our code. These images are day to day built with the latest tag. We tag images during the release process. My problem is related to the
Continue reading[SOLVED] Problems with Google Sign-in in Unity
Issue I have two problems with Google Sign-in in Unity. (Android app) Firstly, by documentation I am using auth.SignOut(); to sign out, after I sign in again it signs me in but no longer asks me which google account I
Continue reading[SOLVED] how to read a cached xml file?
Issue have a file caching system for a php 5 library i use often. when the request is made i check for a cached file, if there is one i render it and exit. $contents = file_get_contents( self::_cacheFile() ); echo
Continue reading[SOLVED] How to ignore global cache on some routes in NestJs
Issue I activate the global cache by APP_INTERCEPTOR in my NestJS app. But now, I need to ignore it on some routes. How can I do that? Solution I found the solution. Before all, I made a CustomHttpCacheInterceptor that extends
Continue reading[SOLVED] Fetch PUT request gets Cache-Control header modified on Firefox and not Chrome
Issue For the context, I’m creating presigned URL to upload to S3. For these requests the Cache-Control header has to be set to the value public, max-age=31536000, immutable. I do the fetch with this code fetch( uploadUrl, { method: ‘PUT’,
Continue reading